Skip to content

Commit 441f6b8

Browse files
author
Maurizio Branca
committed
Add verbose logs for rp2040
1 parent 6044ad9 commit 441f6b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utility/ota/OTA-nano-rp2040.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ int rp2040_connect_onOTARequest(char const * ota_url)
119119

120120
watchdog_reset();
121121

122+
DEBUG_VERBOSE("%s downloading: %s", __FUNCTION__, ota_url);
123+
122124
URI url(ota_url);
123125
Client * client = nullptr;
124126
int port = 0;
@@ -233,6 +235,7 @@ int rp2040_connect_onOTARequest(char const * ota_url)
233235

234236
DEBUG_INFO("%s: %d bytes received", __FUNCTION__, ftell(file));
235237
fclose(file);
238+
DEBUG_VERBOSE("%s download successful", __FUNCTION__);
236239

237240
/* Unmount the filesystem. */
238241
if ((err = fs.unmount()) != 0)
@@ -241,6 +244,8 @@ int rp2040_connect_onOTARequest(char const * ota_url)
241244
return static_cast<int>(OTAError::RP2040_ErrorUnmount);
242245
}
243246

247+
DEBUG_VERBOSE("%s performing reset to reboot", __FUNCTION__);
248+
244249
/* Perform the reset to reboot to SFU. */
245250
mbed_watchdog_trigger_reset();
246251
/* If watchdog is enabled we should not reach this point */

0 commit comments

Comments
 (0)