Skip to content

Commit b80abf1

Browse files
authored
Update handing of a CTRL-C exception
1 parent 30a1624 commit b80abf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/shared/tick.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void mp_hal_delay_ms(mp_uint_t delay) {
106106
{
107107
// clear exception and generate stacktrace
108108
MP_STATE_VM(mp_pending_exception) = MP_OBJ_NULL;
109-
nlr_raise(mp_obj_new_exception(&mp_type_KeyboardInterrupt));
109+
nlr_raise(&MP_STATE_VM(mp_kbd_exception));
110110
}
111111
if( MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_reload_exception)) ||
112112
WATCHDOG_EXCEPTION_CHECK()) {

0 commit comments

Comments
 (0)