We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 659cf2a commit 2bd8304Copy full SHA for 2bd8304
cores/esp32/HardwareSerial.cpp
@@ -231,7 +231,7 @@ bool HardwareSerial::setRxFIFOFull(uint8_t fifoBytes) {
231
log_w("OnReceive is set to Timeout only, thus FIFO Full is now 120 bytes.");
232
}
233
bool retCode = uartSetRxFIFOFull(_uart, fifoBytes); // Set new timeout
234
- if (fifoBytes > 0 && fifoBytes < UART_HW_FIFO_LEN(_uart_nr) - 2) {
+ if (fifoBytes > 0 && fifoBytes < UART_HW_FIFO_LEN(_uart_nr) - 1) {
235
_rxFIFOFull = fifoBytes;
236
237
HSERIAL_MUTEX_UNLOCK();
0 commit comments