Skip to content

Commit 883c37e

Browse files
committed
Adjusting renaming of types names for Portenta OTA to follow suit with renamings within the Arduino_Portenta_OTA library itself.
1 parent 78edcd1 commit 883c37e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -440,35 +440,35 @@ void ArduinoIoTCloudTCP::onOTARequest()
440440
/* Just to be safe delete any remains from previous updates. */
441441
remove("/fs/UPDATE.BIN.LZSS");
442442

443-
Arduino_OTA_Portenta::Error ota_portenta_err = Arduino_OTA_Portenta::Error::None;
443+
Arduino_Portenta_OTA::Error ota_portenta_err = Arduino_Portenta_OTA::Error::None;
444444
/* Use 2nd partition of QSPI (1st partition contains WiFi firmware) */
445-
Arduino_OTA_Portenta_QSPI ota_portenta_qspi(QSPI_FLASH_FATFS_MBR, 2);
445+
Arduino_Portenta_OTA_QSPI ota_portenta_qspi(QSPI_FLASH_FATFS_MBR, 2);
446446

447447
/* Initialize the QSPI memory for OTA handling. */
448-
if((ota_portenta_err = ota_portenta_qspi.begin()) != Arduino_OTA_Portenta::Error::None) {
449-
DBG_ERROR(F("Arduino_OTA_Portenta_QSPI::begin() failed with %d"), static_cast<int>(ota_portenta_err));
448+
if((ota_portenta_err = ota_portenta_qspi.begin()) != Arduino_Portenta_OTA::Error::None) {
449+
DBG_ERROR(F("Arduino_Portenta_OTA_QSPI::begin() failed with %d"), static_cast<int>(ota_portenta_err));
450450
return;
451451
}
452452

453453
/* Download the OTA file from the web storage location. */
454454
int const ota_portenta_qspi_download_ret_code = ota_portenta_qspi.download((char*)(_ota_url.c_str()));
455-
DBG_VERBOSE(F("Arduino_OTA_Portenta_QSPI::download(%s) returns %d"), _ota_url.c_str(), ota_portenta_qspi_download_ret_code);
455+
DBG_VERBOSE(F("Arduino_Portenta_OTA_QSPI::download(%s) returns %d"), _ota_url.c_str(), ota_portenta_qspi_download_ret_code);
456456

457457
/* Decompress the LZSS compressed OTA file. */
458458
int const ota_portenta_qspi_decompress_ret_code = ota_portenta_qspi.decompress();
459-
DBG_VERBOSE(F("Arduino_OTA_Portenta_QSPI::decompress() returns %d"), ota_portenta_qspi_decompress_ret_code);
459+
DBG_VERBOSE(F("Arduino_Portenta_OTA_QSPI::decompress() returns %d"), ota_portenta_qspi_decompress_ret_code);
460460
if (ota_portenta_qspi_decompress_ret_code < 0)
461461
{
462-
DBG_ERROR(F("Arduino_OTA_Portenta_QSPI::decompress() failed with %d"), ota_portenta_qspi_decompress_ret_code);
462+
DBG_ERROR(F("Arduino_Portenta_OTA_QSPI::decompress() failed with %d"), ota_portenta_qspi_decompress_ret_code);
463463
return;
464464
}
465465
/* Set the correct update size. */
466466
size_t const update_file_size = ota_portenta_qspi_decompress_ret_code;
467467
ota_portenta_qspi.setUpdateLen(update_file_size);
468468

469469
/* Schedule the firmware update. */
470-
if((ota_portenta_err = ota_portenta_qspi.update()) != Arduino_OTA_Portenta::Error::None) {
471-
DBG_ERROR(F("Arduino_OTA_Portenta_QSPI::update() failed with %d"), static_cast<int>(ota_portenta_err));
470+
if((ota_portenta_err = ota_portenta_qspi.update()) != Arduino_Portenta_OTA::Error::None) {
471+
DBG_ERROR(F("Arduino_Portenta_OTA_QSPI::update() failed with %d"), static_cast<int>(ota_portenta_err));
472472
return;
473473
}
474474

src/utility/ota/OTA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#endif /* OTA_STORAGE_SFU */
3939

4040
#if OTA_STORAGE_PORTENTA_QSPI
41-
#include <Arduino_OTA_Portenta.h>
41+
#include <Arduino_Portenta_OTA.h>
4242
#endif /* OTA_STORAGE_PORTENTA_QSPI */
4343

4444
/******************************************************************************

0 commit comments

Comments
 (0)