swap uart back during ota upload

This commit is contained in:
proddy
2019-03-14 08:36:53 +01:00
parent 320c71578e
commit 8342947cee

View File

@@ -144,6 +144,7 @@ void ICACHE_FLASH_ATTR emsuart_init() {
void ICACHE_FLASH_ATTR emsuart_stop() {
ETS_UART_INTR_DISABLE();
ETS_UART_INTR_ATTACH(NULL, NULL);
system_uart_swap(); // to be sure, swap Tx/Rx back. Idea from Simon Arlott
}
/*