aboutsummaryrefslogtreecommitdiff
path: root/ports/samd
diff options
context:
space:
mode:
authorDamien George2020-02-07 12:30:55 +1100
committerDamien George2020-02-07 16:08:31 +1100
commitabe2caf6df4cc98e540d9c05b4f2bce14cdedfa4 (patch)
treebef5fa135238eeeb4f9f059de238d8b7c3d08970 /ports/samd
parentf4641b2378121470747f52bd1eab9219ac933506 (diff)
py/scheduler: Move clearing of kbd traceback to mp_keyboard_interrupt.
This is a more logical place to clear the KeyboardInterrupt traceback, right before it is set as a pending exception. The clearing is also optimised from a function call to a simple store of NULL.
Diffstat (limited to 'ports/samd')
-rw-r--r--ports/samd/mphalport.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ports/samd/mphalport.c b/ports/samd/mphalport.c
index 49d8976e6..ebd9dcb5b 100644
--- a/ports/samd/mphalport.c
+++ b/ports/samd/mphalport.c
@@ -39,9 +39,6 @@ void tud_cdc_rx_wanted_cb(uint8_t itf, char wanted_char) {
}
void mp_hal_set_interrupt_char(int c) {
- if (c != -1) {
- mp_obj_exception_clear_traceback(MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception)));
- }
tud_cdc_set_wanted_char(c);
}