Skip to content

Commit 2b6ab6c

Browse files
Don't return from reboot (#772)
rp2040.reboot() would set a reboot timer for 100ms in the future, but then return to user code and ran it until the timer expired. Now infinite loop until the WDT fires.
1 parent 0ef026c commit 2b6ab6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cores/rp2040/RP2040Support.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ class RP2040 {
314314
}
315315

316316
void reboot() {
317-
watchdog_reboot(0, 0, 100);
317+
watchdog_reboot(0, 0, 10);
318+
while (1) {
319+
continue;
320+
}
318321
}
319322

320323
inline void restart() {

0 commit comments

Comments
 (0)