Skip to content

Commit d395a2b

Browse files
committed
Fixing a couple of more wrong debug macros.
1 parent c9dea0f commit d395a2b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int ArduinoIoTCloudTCP::begin(String brokerAddress, uint16_t brokerPort)
198198
uint8_t currentBootloaderVersion = bootloader_data[1];
199199
if (currentBootloaderVersion < 22) {
200200
_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__);
202202
}
203203
else {
204204
_ota_cap = true;
@@ -460,7 +460,7 @@ int ArduinoIoTCloudTCP::write(String const topic, byte const data[], int const l
460460
#if OTA_ENABLED
461461
void ArduinoIoTCloudTCP::onOTARequest()
462462
{
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());
464464

465465
#if OTA_STORAGE_SNU
466466
/* Just to be safe delete any remains from previous updates. */
@@ -496,11 +496,11 @@ void ArduinoIoTCloudTCP::onOTARequest()
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_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);
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_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);
504504
if (ota_portenta_qspi_decompress_ret_code < 0)
505505
{
506506
DEBUG_ERROR("Arduino_Portenta_OTA_QSPI::decompress() failed with %d", ota_portenta_qspi_decompress_ret_code);
@@ -509,7 +509,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
509509

510510
/* Schedule the firmware update. */
511511
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));
513513
return;
514514
}
515515

0 commit comments

Comments
 (0)