@@ -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
0 commit comments