We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4cd0ff + 45b5aa3 commit 462dab3Copy full SHA for 462dab3
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