diff options
Diffstat (limited to 'esp8266/uart.c')
-rw-r--r-- | esp8266/uart.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/esp8266/uart.c b/esp8266/uart.c index 9b2bfb4c83..bfc380ae4a 100644 --- a/esp8266/uart.c +++ b/esp8266/uart.c @@ -233,6 +233,7 @@ void soft_reset(void); void mp_keyboard_interrupt(void); int interrupt_char; +#if MICROPY_REPL_EVENT_DRIVEN void uart_task_handler(os_event_t *evt) { if (pyexec_repl_active) { // TODO: Just returning here isn't exactly right. @@ -264,3 +265,4 @@ void uart_task_handler(os_event_t *evt) { void uart_task_init() { system_os_task(uart_task_handler, UART_TASK_ID, uart_evt_queue, sizeof(uart_evt_queue) / sizeof(*uart_evt_queue)); } +#endif |