summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/uart.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-29 21:10:10 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-29 21:10:10 +0300
commitc4506ed869ff255993c8cae3ca847689c8c42236 (patch)
tree74c791e968dc5fbe76b74a0ba4ea2ecef3eb8ee8 /esp8266/uart.c
parent402a743821e99d99e6118669ec162b902b29fcd5 (diff)
downloadmicropython-c4506ed869ff255993c8cae3ca847689c8c42236.tar.gz
micropython-c4506ed869ff255993c8cae3ca847689c8c42236.zip
esp8266: Let esp8266 "os" messages go to standard (REPL) UART.
That's definitely helpful for debugging.
Diffstat (limited to 'esp8266/uart.c')
-rw-r--r--esp8266/uart.c2
1 files changed, 1 insertions, 1 deletions
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);
}