We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94ff897 commit 679118cCopy full SHA for 679118c
src/utility/ota/OTA-nano-rp2040.cpp
@@ -243,6 +243,8 @@ int rp2040_connect_onOTARequest(char const * ota_url)
243
244
/* Perform the reset to reboot to SFU. */
245
mbed_watchdog_trigger_reset();
246
+ /* If watchdog is enabled we should not reach this point */
247
+ NVIC_SystemReset();
248
249
return static_cast<int>(OTAError::None);
250
}
src/utility/watchdog/Watchdog.cpp
@@ -124,11 +124,11 @@ void mbed_watchdog_trigger_reset()
124
125
if (hal_watchdog_init(&cfg) == WATCHDOG_STATUS_OK) {
126
is_watchdog_enabled = true;
127
+ while(1){}
128
129
else {
130
DEBUG_WARNING("%s: watchdog could not be reconfigured", __FUNCTION__);
131
132
- while(1){}
133
134
#endif /* ARDUINO_ARCH_MBED */
0 commit comments