tick: break on watchdog timeout exception
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
ae950bc050
commit
ec99dae953
@ -96,7 +96,8 @@ void mp_hal_delay_ms(mp_uint_t delay) {
|
||||
RUN_BACKGROUND_TASKS;
|
||||
// Check to see if we've been CTRL-Ced by autoreload or the user.
|
||||
if(MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception)) ||
|
||||
MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_reload_exception))) {
|
||||
MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_reload_exception)) ||
|
||||
MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_watchdog_exception))) {
|
||||
break;
|
||||
}
|
||||
remaining = end_tick - port_get_raw_ticks(NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user