@@ -198,7 +198,7 @@ int ArduinoIoTCloudTCP::begin(String brokerAddress, uint16_t brokerPort)
198
198
uint8_t currentBootloaderVersion = bootloader_data[1 ];
199
199
if (currentBootloaderVersion < 22 ) {
200
200
_ota_cap = false ;
201
- DBG_WARNING ( F ( " ArduinoIoTCloudTCP::%s In order to be ready for cloud OTA, update the bootloader" ) , __FUNCTION__);
201
+ DEBUG_WARNING ( " ArduinoIoTCloudTCP::%s In order to be ready for cloud OTA, update the bootloader" , __FUNCTION__);
202
202
}
203
203
else {
204
204
_ota_cap = true ;
@@ -460,7 +460,7 @@ int ArduinoIoTCloudTCP::write(String const topic, byte const data[], int const l
460
460
#if OTA_ENABLED
461
461
void ArduinoIoTCloudTCP::onOTARequest ()
462
462
{
463
- DBG_VERBOSE ( F ( " ArduinoIoTCloudTCP::%s _ota_url = %s" ) , __FUNCTION__, _ota_url.c_str ());
463
+ DEBUG_VERBOSE ( " ArduinoIoTCloudTCP::%s _ota_url = %s" , __FUNCTION__, _ota_url.c_str ());
464
464
465
465
#if OTA_STORAGE_SNU
466
466
/* Just to be safe delete any remains from previous updates. */
@@ -496,11 +496,11 @@ void ArduinoIoTCloudTCP::onOTARequest()
496
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
- DBG_VERBOSE ( F ( " Arduino_Portenta_OTA_QSPI::download(%s) returns %d" ) , _ota_url.c_str (), ota_portenta_qspi_download_ret_code);
499
+ DEBUG_VERBOSE ( " Arduino_Portenta_OTA_QSPI::download(%s) returns %d" , _ota_url.c_str (), ota_portenta_qspi_download_ret_code);
500
500
501
501
/* Decompress the LZSS compressed OTA file. */
502
502
int const ota_portenta_qspi_decompress_ret_code = ota_portenta_qspi.decompress ();
503
- DBG_VERBOSE ( F ( " Arduino_Portenta_OTA_QSPI::decompress() returns %d" ) , ota_portenta_qspi_decompress_ret_code);
503
+ DEBUG_VERBOSE ( " Arduino_Portenta_OTA_QSPI::decompress() returns %d" , ota_portenta_qspi_decompress_ret_code);
504
504
if (ota_portenta_qspi_decompress_ret_code < 0 )
505
505
{
506
506
DEBUG_ERROR (" Arduino_Portenta_OTA_QSPI::decompress() failed with %d" , ota_portenta_qspi_decompress_ret_code);
@@ -509,7 +509,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
509
509
510
510
/* Schedule the firmware update. */
511
511
if ((ota_portenta_err = ota_portenta_qspi.update ()) != Arduino_Portenta_OTA::Error::None) {
512
- DEBUG_ERROR (F ( " Arduino_Portenta_OTA_QSPI::update() failed with %d" ) , static_cast <int >(ota_portenta_err));
512
+ DEBUG_ERROR (" Arduino_Portenta_OTA_QSPI::update() failed with %d" , static_cast <int >(ota_portenta_err));
513
513
return ;
514
514
}
515
515
0 commit comments