Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Firmware/RTK_Everywhere/Device_Update.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ typedef void (* DEVICE_CLOSE)(DEVICE_FIRMWARE_CTX * ctx);
typedef bool (* DEVICE_OPEN)(DEVICE_FIRMWARE_CTX * ctx);
typedef bool (* DEVICE_RESET)(DEVICE_FIRMWARE_CTX * ctx, uint32_t currentMsec);
typedef ssize_t (* DEVICE_WRITE)(DEVICE_FIRMWARE_CTX * ctx,
uint8_t * buffer,
const uint8_t * buffer,
size_t bytesToWrite);
typedef String (* GET_FIRMWARE_VERSION)(DEVICE_FIRMWARE_CTX * ctx);
typedef bool (* INIT_DEV_CTX)(DEVICE_FIRMWARE_CTX * ctx);
Expand Down Expand Up @@ -301,10 +301,10 @@ bool dfuLg290pOpen(DEVICE_FIRMWARE_CTX * ctx);

// Device write, perform the firmware update
ssize_t dfuEsp32Write(DEVICE_FIRMWARE_CTX * ctx,
uint8_t * buffer,
const uint8_t * buffer,
size_t bytesToWrite);
ssize_t dfuLg290pWrite(DEVICE_FIRMWARE_CTX * ctx,
uint8_t * buffer,
const uint8_t * buffer,
size_t bytesToWrite);

// Device close, finalize the firmware update
Expand Down
4 changes: 2 additions & 2 deletions Firmware/RTK_Everywhere/Device_Update_ESP32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ void dfuEsp32Reboot()
// ESP32 firmware write
//----------------------------------------
ssize_t dfuEsp32Write(DEVICE_FIRMWARE_CTX * ctx,
uint8_t * buffer,
const uint8_t * buffer,
size_t bytesToWrite)
{
return Update.write(buffer, bytesToWrite);
return Update.write((uint8_t *)buffer, bytesToWrite);
}
2 changes: 1 addition & 1 deletion Firmware/RTK_Everywhere/Device_Update_LG290P.ino
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ bool dfuLg290pReset()
// LG290P firmware write
//----------------------------------------
ssize_t dfuLg290pWrite(DEVICE_FIRMWARE_CTX * ctx,
uint8_t * buffer,
const uint8_t * buffer,
size_t bytesToWrite)
{
size_t commandLength;
Expand Down
2 changes: 1 addition & 1 deletion Firmware/RTK_Everywhere/Device_Update_NVM.ino
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ ssize_t dfuNvmRead(DEVICE_FIRMWARE_CTX * ctx,
// Write firmware data to an NVM file
//----------------------------------------
ssize_t dfuNvmWrite(DEVICE_FIRMWARE_CTX * ctx,
uint8_t * buffer,
const uint8_t * buffer,
size_t bytesToWrite)
{
return ctx->_nvmFile.write(buffer, bytesToWrite);
Expand Down
2 changes: 1 addition & 1 deletion Firmware/RTK_Everywhere/Device_Update_SD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ ssize_t dfuSdRead(DEVICE_FIRMWARE_CTX * ctx,
// Copy firmware into the file
//----------------------------------------
ssize_t dfuSdWrite(DEVICE_FIRMWARE_CTX * ctx,
uint8_t * buffer,
const uint8_t * buffer,
size_t bytesToWrite)
{
return ctx->_sdFile.write(buffer, bytesToWrite);
Expand Down