Match return value to type in available()

This commit is contained in:
Zachary J. Fields 2014-05-07 17:39:08 -07:00
parent 908c526c4c
commit c16768565b
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ void HardwareSerial::end()
int HardwareSerial::available(void)
{
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;
}
int HardwareSerial::peek(void)