We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e381f59 commit 0b52359Copy full SHA for 0b52359
supervisor/shared/tick.c
@@ -105,6 +105,12 @@ void mp_hal_delay_ms(mp_uint_t delay) {
105
if(MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception)) ||
106
MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_reload_exception)) ||
107
WATCHDOG_EXCEPTION_CHECK()) {
108
+ if(MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception)))
109
+ {
110
+ // clear exception and generate stacktrace
111
+ MP_STATE_VM(mp_pending_exception) = MP_OBJ_NULL;
112
+ nlr_raise(mp_obj_new_exception(&mp_type_KeyboardInterrupt));
113
+ }
114
break;
115
}
116
remaining = end_tick - port_get_raw_ticks(NULL);
0 commit comments