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 9978928 commit beb80e7Copy full SHA for beb80e7
shared-module/time/__init__.c
@@ -48,7 +48,8 @@ void common_hal_time_delay_ms(uint32_t delay) {
48
// if the delay was cut short by a CTRL-C then clear the keyboard exception
49
if(MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception)))
50
{
51
- MP_STATE_VM (mp_pending_exception) = MP_OBJ_NULL;
+ // clear exception and generate stacktrace
52
+ MP_STATE_VM(mp_pending_exception) = MP_OBJ_NULL;
53
nlr_raise(mp_obj_new_exception(&mp_type_KeyboardInterrupt));
54
}
55
0 commit comments