@@ -440,35 +440,35 @@ void ArduinoIoTCloudTCP::onOTARequest()
440
440
/* Just to be safe delete any remains from previous updates. */
441
441
remove (" /fs/UPDATE.BIN.LZSS" );
442
442
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;
444
444
/* 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 );
446
446
447
447
/* 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));
450
450
return ;
451
451
}
452
452
453
453
/* Download the OTA file from the web storage location. */
454
454
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);
456
456
457
457
/* Decompress the LZSS compressed OTA file. */
458
458
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);
460
460
if (ota_portenta_qspi_decompress_ret_code < 0 )
461
461
{
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);
463
463
return ;
464
464
}
465
465
/* Set the correct update size. */
466
466
size_t const update_file_size = ota_portenta_qspi_decompress_ret_code;
467
467
ota_portenta_qspi.setUpdateLen (update_file_size);
468
468
469
469
/* 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));
472
472
return ;
473
473
}
474
474
0 commit comments