Added stack trace after a sleep ctrl-c interrupt
This commit is contained in:
parent
47425f21cc
commit
6a76e1571b
@ -28,6 +28,7 @@
|
||||
#include "supervisor/port.h"
|
||||
#include "supervisor/shared/tick.h"
|
||||
#include "py/obj.h"
|
||||
#include "py/nlr.h"
|
||||
#include "py/mpstate.h"
|
||||
|
||||
uint64_t common_hal_time_monotonic(void) {
|
||||
@ -48,5 +49,6 @@ void common_hal_time_delay_ms(uint32_t delay) {
|
||||
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_NULL;
|
||||
nlr_raise(mp_obj_new_exception(&mp_type_KeyboardInterrupt));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user