summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/esp_mphal.c
diff options
context:
space:
mode:
Diffstat (limited to 'esp8266/esp_mphal.c')
-rw-r--r--esp8266/esp_mphal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/esp8266/esp_mphal.c b/esp8266/esp_mphal.c
index 7068d8e609..2f813ca22f 100644
--- a/esp8266/esp_mphal.c
+++ b/esp8266/esp_mphal.c
@@ -66,7 +66,7 @@ void mp_hal_delay_us(uint32_t us) {
int mp_hal_stdin_rx_chr(void) {
for (;;) {
- int c = uart0_rx();
+ int c = ringbuf_get(&input_buf);
if (c != -1) {
return c;
}
@@ -156,7 +156,9 @@ void __assert_func(const char *file, int line, const char *func, const char *exp
}
void mp_hal_signal_input(void) {
+ #if MICROPY_REPL_EVENT_DRIVEN
system_os_post(UART_TASK_ID, 0, 0);
+ #endif
}
static int call_dupterm_read(void) {