summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorDavePutz <dwputz@gmail.com>2020-06-23 12:15:01 -0500
committerGitHub <noreply@github.com>2020-06-23 12:15:01 -0500
commitb80abf1a90b515fff1503b75358e629fb248660c (patch)
treef4e3a6edafb578bc4bfdcb871ccecfd1bb780aac /supervisor
parent30a1624d59830e9eb73340e329586beec704b713 (diff)
Update handing of a CTRL-C exception
Diffstat (limited to 'supervisor')
-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()) {