File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -481,9 +481,6 @@ void ArduinoIoTCloudTCP::onOTARequest()
481
481
#endif /* OTA_STORAGE_SNU */
482
482
483
483
#if OTA_STORAGE_PORTENTA_QSPI
484
- /* Just to be safe delete any remains from previous updates. */
485
- remove (" /fs/UPDATE.BIN.LZSS" );
486
-
487
484
Arduino_Portenta_OTA::Error ota_portenta_err = Arduino_Portenta_OTA::Error::None;
488
485
/* Use 2nd partition of QSPI (1st partition contains WiFi firmware) */
489
486
Arduino_Portenta_OTA_QSPI ota_portenta_qspi (QSPI_FLASH_FATFS_MBR, 2 );
@@ -494,6 +491,9 @@ void ArduinoIoTCloudTCP::onOTARequest()
494
491
return ;
495
492
}
496
493
494
+ /* Just to be safe delete any remains from previous updates. */
495
+ remove (" /fs/UPDATE.BIN.LZSS" );
496
+
497
497
/* Download the OTA file from the web storage location. */
498
498
int const ota_portenta_qspi_download_ret_code = ota_portenta_qspi.download ((char *)(_ota_url.c_str ()));
499
499
DEBUG_VERBOSE (" Arduino_Portenta_OTA_QSPI::download(%s) returns %d" , _ota_url.c_str (), ota_portenta_qspi_download_ret_code);
You can’t perform that action at this time.
0 commit comments