Skip to content

Commit 098307d

Browse files
committed
I forgot a file
1 parent f87e115 commit 098307d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/arduino/HardwareSerial_private.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void HardwareSerial::_rx_complete_irq(void)
9999
// No Parity error, read byte and store it in the buffer if there is
100100
// room
101101
unsigned char c = *_udr;
102-
uint8_t i = (unsigned int)(_rx_buffer_head + 1) % SERIAL_BUFFER_SIZE;
102+
uint8_t i = (unsigned int)(_rx_buffer_head + 1) % SERIAL_RX_BUFFER_SIZE;
103103

104104
// if we should be storing the received character into the location
105105
// just before the tail (meaning that the head would advance to the

0 commit comments

Comments
 (0)