We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9fcf005 + 39c5b34 commit c039653Copy full SHA for c039653
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
- int i = (unsigned int)(_rx_buffer_head + 1) % SERIAL_BUFFER_SIZE;
+ uint8_t i = (unsigned int)(_rx_buffer_head + 1) % SERIAL_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