mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
swap uart back during ota upload
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user