Skip to content

Commit a47ca14

Browse files
committed
tick: break on watchdog timeout exception
Signed-off-by: Sean Cross <[email protected]>
1 parent a70fe2a commit a47ca14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

supervisor/shared/tick.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ void mp_hal_delay_ms(mp_uint_t delay) {
9696
RUN_BACKGROUND_TASKS;
9797
// Check to see if we've been CTRL-Ced by autoreload or the user.
9898
if(MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception)) ||
99-
MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_reload_exception))) {
99+
MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_reload_exception)) ||
100+
MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_watchdog_exception))) {
100101
break;
101102
}
102103
remaining = end_tick - port_get_raw_ticks(NULL);

0 commit comments

Comments
 (0)