Merge pull request #6383 from s-hadinger/serial_115200_3

TasmotaSerial: Force wait for Stop Bit
This commit is contained in:
Theo Arends 2019-09-09 16:16:53 +02:00 committed by GitHub
commit d3997b2851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -276,6 +276,8 @@ void TasmotaSerial::rxRead()
m_in_pos = next;
}
TM_SERIAL_WAIT_RCV_LOOP; // wait for stop bit
wait += m_bit_time / 4;
if (loop <= 0) { break; } // exit now if not very high speed or buffer full
bool start_of_next_byte = false;