Fix intermittent hardware watchdogs

Fix intermittent hardware watchdogs in case of high speed software serial flooding
This commit is contained in:
Theo Arends 2022-11-26 09:48:23 +01:00
parent 430396832f
commit 48ae4b247c

View File

@ -425,6 +425,9 @@ void IRAM_ATTR TasmotaSerial::rxRead(void) {
if (next != (int)m_out_pos) {
m_buffer[m_in_pos] = rec;
m_in_pos = next;
} else {
// Buffer overrun - prep to exit and fix Hardware Watchdog in case of high speed flooding
loop_read = 0;
}
TM_SERIAL_WAIT_RCV_LOOP; // wait for stop bit