We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b999ed2 + f40e471 commit fb8e439Copy full SHA for fb8e439
hardware/arduino/cores/arduino/HardwareSerial.cpp
@@ -426,7 +426,7 @@ void HardwareSerial::end()
426
427
int HardwareSerial::available(void)
428
{
429
- return (unsigned int)(SERIAL_BUFFER_SIZE + _rx_buffer->head - _rx_buffer->tail) % SERIAL_BUFFER_SIZE;
+ return (int)(SERIAL_BUFFER_SIZE + _rx_buffer->head - _rx_buffer->tail) % SERIAL_BUFFER_SIZE;
430
}
431
432
int HardwareSerial::peek(void)
0 commit comments