We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 116eeee commit 4681b86Copy full SHA for 4681b86
2 files changed
esp8266/esp_mphal.c
@@ -176,6 +176,10 @@ static int call_dupterm_read(void) {
176
mp_uos_deactivate("dupterm: EOF received, deactivating\n", MP_OBJ_NULL);
177
return -1;
178
}
179
+ if (*(byte*)bufinfo.buf == interrupt_char) {
180
+ mp_keyboard_interrupt();
181
+ return -2;
182
+ }
183
return *(byte*)bufinfo.buf;
184
} else {
185
mp_uos_deactivate("dupterm: Exception in read() method, deactivating: ", nlr.ret_val);
esp8266/esp_mphal.h
@@ -29,6 +29,9 @@
29
30
#include "py/ringbuf.h"
31
32
+void mp_keyboard_interrupt(void);
33
+extern int interrupt_char;
34
+
35
struct _mp_print_t;
36
// Structure for UART-only output via mp_printf()
37
extern const struct _mp_print_t mp_debug_print;
0 commit comments