Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 38e5ff7

Browse files
author
Maurizio Branca
committedOct 27, 2021
Add verbose logs for rp2040
1 parent 6044ad9 commit 38e5ff7

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;
@@ -241,6 +243,9 @@ int rp2040_connect_onOTARequest(char const * ota_url)
241243
return static_cast<int>(OTAError::RP2040_ErrorUnmount);
242244
}
243245

246+
DEBUG_VERBOSE("%s download successful", __FUNCTION__);
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)
Please sign in to comment.