Higher speeds need larger buffer. Processing takes longer, so let's put the threshold at 75% of the buffer size to have some headroom. E.g. for 1Mbit with 2.5KB buffer 2048 characters would be roughly still around 20ms, and reserve additional 512 chars / 5ms to handle the buffer after the threshold is reached Co-authored-by: mrkev-gh <mrkev-gh@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| TasmotaSerial.cpp | ||
| TasmotaSerial.h | ||