Skip to content

Commit b4806cc

Browse files
committed
Renaming still incorrect debug macros.
1 parent c915dfd commit b4806cc

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
@@ -330,7 +330,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_Connected()
330330
{
331331
if (!_mqttClient.connected())
332332
{
333-
DBG_ERROR(F("ArduinoIoTCloudTCP::%s MQTT client connection lost"), __FUNCTION__);
333+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s MQTT client connection lost", __FUNCTION__);
334334

335335
/* Forcefully disconnect MQTT client and trigger a reconnection. */
336336
_mqttClient.stop();
@@ -410,7 +410,7 @@ void ArduinoIoTCloudTCP::handleMessage(int length)
410410

411411
if ((_shadowTopicIn == topic) && (_state == State::RequestLastValues))
412412
{
413-
DBG_VERBOSE(F("ArduinoIoTCloudTCP::%s [%d] last values received"), __FUNCTION__, millis());
413+
DEBUG_VERBOSE("ArduinoIoTCloudTCP::%s [%d] last values received", __FUNCTION__, millis());
414414
CBORDecoder::decode(_property_container, (uint8_t*)bytes, length, true);
415415
sendPropertiesToCloud();
416416
execCloudEventCallback(ArduinoIoTCloudEvent::SYNC);
@@ -490,7 +490,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
490490

491491
/* Initialize the QSPI memory for OTA handling. */
492492
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));
493+
DEBUG_ERROR("Arduino_Portenta_OTA_QSPI::begin() failed with %d", static_cast<int>(ota_portenta_err));
494494
return;
495495
}
496496

@@ -503,7 +503,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
503503
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_Portenta_OTA_QSPI::decompress() failed with %d"), ota_portenta_qspi_decompress_ret_code);
506+
DEBUG_ERROR("Arduino_Portenta_OTA_QSPI::decompress() failed with %d", ota_portenta_qspi_decompress_ret_code);
507507
return;
508508
}
509509
/* Set the correct update size. */
@@ -512,7 +512,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
512512

513513
/* Schedule the firmware update. */
514514
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));
515+
DEBUG_ERROR(F("Arduino_Portenta_OTA_QSPI::update() failed with %d"), static_cast<int>(ota_portenta_err));
516516
return;
517517
}
518518

0 commit comments

Comments
 (0)