Skip to content

Commit 9138e35

Browse files
committed
nrf: reset watchdog as part of port_reset()
Signed-off-by: Sean Cross <[email protected]>
1 parent 737db96 commit 9138e35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ports/nrf/supervisor/port.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#include "common-hal/pulseio/PulseIn.h"
5151
#include "common-hal/rtc/RTC.h"
5252
#include "common-hal/neopixel_write/__init__.h"
53+
#include "common-hal/watchdog/WatchDogTimer.h"
5354

5455
#include "shared-bindings/microcontroller/__init__.h"
5556
#include "shared-bindings/rtc/__init__.h"
@@ -189,6 +190,10 @@ void reset_port(void) {
189190
bleio_reset();
190191
#endif
191192

193+
#if CIRCUITPY_WATCHDOG
194+
watchdog_reset();
195+
#endif
196+
192197
reset_all_pins();
193198
}
194199

0 commit comments

Comments
 (0)