Skip to content

Commit

Permalink
Compilation fixes for ESP8266 EQT toolchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Mar 24, 2021
1 parent 8009d83 commit c7e417b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sming/Libraries/OtaUpgrade/OtaUpgrade/BasicStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ size_t BasicStream::write(const uint8_t* data, size_t size)
break;

case State::WriteRom: {
bool ok = rboot_write_flash(&rbootWriteStatus, data, std::min(remainingBytes, size));
bool ok = rboot_write_flash(&rbootWriteStatus, const_cast<uint8_t*>(data), std::min(remainingBytes, size));
if(ok) {
if(consume(data, size)) {
ok = slot.updated = rboot_write_end(&rbootWriteStatus);
Expand Down
3 changes: 2 additions & 1 deletion Sming/Libraries/OtaUpgrade/OtaUpgrade/EncryptedStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include "BasicStream.h"
#include <sodium/crypto_secretstream_xchacha20poly1305.h>
#include <memory>

namespace OtaUpgrade
{
Expand All @@ -20,7 +21,7 @@ namespace OtaUpgrade
*
* The class processes encrypted firmware upgrade files created by otatool.py.
* A buffer is allocated dynamically to fit the largest chunk of the encryption container
* (2kB unless otatool.py was modified). The actual processing of the decrypted data is
* (2kB unless otatool.py was modified). The actual processing of the decrypted data is
* defered to #BasicStream.
*/
class EncryptedStream : public BasicStream
Expand Down

0 comments on commit c7e417b

Please sign in to comment.