Skip to content

Commit c915dfd

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 690108f commit c915dfd

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
@@ -484,35 +484,35 @@ void ArduinoIoTCloudTCP::onOTARequest()
484484
/* Just to be safe delete any remains from previous updates. */
485485
remove("/fs/UPDATE.BIN.LZSS");
486486

487-
Arduino_OTA_Portenta::Error ota_portenta_err = Arduino_OTA_Portenta::Error::None;
487+
Arduino_Portenta_OTA::Error ota_portenta_err = Arduino_Portenta_OTA::Error::None;
488488
/* Use 2nd partition of QSPI (1st partition contains WiFi firmware) */
489-
Arduino_OTA_Portenta_QSPI ota_portenta_qspi(QSPI_FLASH_FATFS_MBR, 2);
489+
Arduino_Portenta_OTA_QSPI ota_portenta_qspi(QSPI_FLASH_FATFS_MBR, 2);
490490

491491
/* Initialize the QSPI memory for OTA handling. */
492-
if((ota_portenta_err = ota_portenta_qspi.begin()) != Arduino_OTA_Portenta::Error::None) {
493-
DBG_ERROR(F("Arduino_OTA_Portenta_QSPI::begin() failed with %d"), static_cast<int>(ota_portenta_err));
492+
if((ota_portenta_err = ota_portenta_qspi.begin()) != Arduino_Portenta_OTA::Error::None) {
493+
DBG_ERROR(F("Arduino_Portenta_OTA_QSPI::begin() failed with %d"), static_cast<int>(ota_portenta_err));
494494
return;
495495
}
496496

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

501501
/* Decompress the LZSS compressed OTA file. */
502502
int const ota_portenta_qspi_decompress_ret_code = ota_portenta_qspi.decompress();
503-
DBG_VERBOSE(F("Arduino_OTA_Portenta_QSPI::decompress() returns %d"), ota_portenta_qspi_decompress_ret_code);
503+
DBG_VERBOSE(F("Arduino_Portenta_OTA_QSPI::decompress() returns %d"), ota_portenta_qspi_decompress_ret_code);
504504
if (ota_portenta_qspi_decompress_ret_code < 0)
505505
{
506-
DBG_ERROR(F("Arduino_OTA_Portenta_QSPI::decompress() failed with %d"), ota_portenta_qspi_decompress_ret_code);
506+
DBG_ERROR(F("Arduino_Portenta_OTA_QSPI::decompress() failed with %d"), ota_portenta_qspi_decompress_ret_code);
507507
return;
508508
}
509509
/* Set the correct update size. */
510510
size_t const update_file_size = ota_portenta_qspi_decompress_ret_code;
511511
ota_portenta_qspi.setUpdateLen(update_file_size);
512512

513513
/* Schedule the firmware update. */
514-
if((ota_portenta_err = ota_portenta_qspi.update()) != Arduino_OTA_Portenta::Error::None) {
515-
DBG_ERROR(F("Arduino_OTA_Portenta_QSPI::update() failed with %d"), static_cast<int>(ota_portenta_err));
514+
if((ota_portenta_err = ota_portenta_qspi.update()) != Arduino_Portenta_OTA::Error::None) {
515+
DBG_ERROR(F("Arduino_Portenta_OTA_QSPI::update() failed with %d"), static_cast<int>(ota_portenta_err));
516516
return;
517517
}
518518

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)