summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--esp8266/Makefile4
-rw-r--r--esp8266/uart.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile
index 50862623d5..306935210e 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -23,7 +23,9 @@ INC += -I../lib/timeutils
INC += -I$(BUILD)
INC += -I$(ESP_SDK)/include
-UART_OS = 1
+# UART for "os" messages. 0 is normal UART as used by MicroPython REPL,
+# 1 is debug UART (tx only).
+UART_OS = 0
CFLAGS_XTENSA = -fsingle-precision-constant -Wdouble-promotion \
-D__ets__ -DICACHE_FLASH \
diff --git a/esp8266/uart.c b/esp8266/uart.c
index 942c397e90..4f45a952ba 100644
--- a/esp8266/uart.c
+++ b/esp8266/uart.c
@@ -205,7 +205,7 @@ void ICACHE_FLASH_ATTR uart_init(UartBautRate uart0_br, UartBautRate uart1_br) {
uart_config(UART1);
ETS_UART_INTR_ENABLE();
- // install uart1 putc callback
+ // install handler for "os" messages
os_install_putc1((void *)uart_os_write_char);
}