summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--supervisor/shared/tick.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/supervisor/shared/tick.c b/supervisor/shared/tick.c
index 106ff53f8..dd7dba8f3 100644
--- a/supervisor/shared/tick.c
+++ b/supervisor/shared/tick.c
@@ -106,7 +106,7 @@ void mp_hal_delay_ms(mp_uint_t delay) {
{
// clear exception and generate stacktrace
MP_STATE_VM(mp_pending_exception) = MP_OBJ_NULL;
- nlr_raise(mp_obj_new_exception(&mp_type_KeyboardInterrupt));
+ nlr_raise(&MP_STATE_VM(mp_kbd_exception));
}
if( MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_reload_exception)) ||
WATCHDOG_EXCEPTION_CHECK()) {