diff options
Diffstat (limited to 'esp8266/esp_mphal.c')
-rw-r--r-- | esp8266/esp_mphal.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/esp8266/esp_mphal.c b/esp8266/esp_mphal.c index cc0eb3eae1..c78b3600f0 100644 --- a/esp8266/esp_mphal.c +++ b/esp8266/esp_mphal.c @@ -98,7 +98,11 @@ void mp_hal_delay_ms(uint32_t delay) { } void mp_hal_set_interrupt_char(int c) { - // TODO + if (c != -1) { + mp_obj_exception_clear_traceback(MP_STATE_PORT(mp_kbd_exception)); + } + extern int interrupt_char; + interrupt_char = c; } void __assert_func(const char *file, int line, const char *func, const char *expr) { |