File tree 3 files changed +0
-21
lines changed
3 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -243,8 +243,6 @@ int rp2040_connect_onOTARequest(char const * ota_url)
243
243
}
244
244
245
245
/* Perform the reset to reboot to SFU. */
246
- mbed_watchdog_trigger_reset ();
247
- /* If watchdog is enabled we should not reach this point */
248
246
NVIC_SystemReset ();
249
247
250
248
return static_cast <int >(OTAError::None);
Original file line number Diff line number Diff line change @@ -131,21 +131,6 @@ static void mbed_watchdog_enable_network_feed(NetworkAdapter ni)
131
131
#endif
132
132
}
133
133
}
134
-
135
- void mbed_watchdog_trigger_reset ()
136
- {
137
- watchdog_config_t cfg;
138
- cfg.timeout_ms = 1 ;
139
-
140
- if (hal_watchdog_init (&cfg) == WATCHDOG_STATUS_OK) {
141
- is_watchdog_enabled = true ;
142
- while (1 ){}
143
- }
144
- else {
145
- DEBUG_WARNING (" %s: watchdog could not be reconfigured" , __FUNCTION__);
146
- }
147
-
148
- }
149
134
#endif /* ARDUINO_ARCH_MBED */
150
135
151
136
#if defined (ARDUINO_ARCH_SAMD) || defined (ARDUINO_ARCH_MBED)
Original file line number Diff line number Diff line change @@ -34,8 +34,4 @@ void watchdog_reset();
34
34
void watchdog_enable_network_feed (NetworkAdapter ni );
35
35
#endif /* (ARDUINO_ARCH_SAMD) || (ARDUINO_ARCH_MBED) */
36
36
37
- #ifdef ARDUINO_ARCH_MBED
38
- void mbed_watchdog_trigger_reset ();
39
- #endif /* ARDUINO_ARCH_MBED */
40
-
41
37
#endif /* ARDUINO_AIOTC_UTILITY_WATCHDOG_H_ */
You can’t perform that action at this time.
0 commit comments