Skip to content

Commit 2bd8304

Browse files
authored
fix(uart): keeps the test as it was before.
1 parent 659cf2a commit 2bd8304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/HardwareSerial.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ bool HardwareSerial::setRxFIFOFull(uint8_t fifoBytes) {
231231
log_w("OnReceive is set to Timeout only, thus FIFO Full is now 120 bytes.");
232232
}
233233
bool retCode = uartSetRxFIFOFull(_uart, fifoBytes); // Set new timeout
234-
if (fifoBytes > 0 && fifoBytes < UART_HW_FIFO_LEN(_uart_nr) - 2) {
234+
if (fifoBytes > 0 && fifoBytes < UART_HW_FIFO_LEN(_uart_nr) - 1) {
235235
_rxFIFOFull = fifoBytes;
236236
}
237237
HSERIAL_MUTEX_UNLOCK();

0 commit comments

Comments
 (0)