We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a51e1c4 commit 77187adCopy full SHA for 77187ad
hardware/arduino/avr/cores/arduino/HardwareSerial_private.h
@@ -99,7 +99,7 @@ void HardwareSerial::_rx_complete_irq(void)
99
// No Parity error, read byte and store it in the buffer if there is
100
// room
101
unsigned char c = *_udr;
102
- uint8_t i = (unsigned int)(_rx_buffer_head + 1) % SERIAL_BUFFER_SIZE;
+ uint8_t i = (unsigned int)(_rx_buffer_head + 1) % SERIAL_RX_BUFFER_SIZE;
103
104
// if we should be storing the received character into the location
105
// just before the tail (meaning that the head would advance to the
0 commit comments