We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 44dc454 + 65e63bf commit 6507dfeCopy full SHA for 6507dfe
libraries/SoftwareSerial/src/SoftwareSerial.cpp
@@ -409,7 +409,7 @@ int SoftwareSerial::available()
409
if (!isListening())
410
return 0;
411
412
- return (_receive_buffer_tail + _SS_MAX_RX_BUFF - _receive_buffer_head) % _SS_MAX_RX_BUFF;
+ return ((unsigned int)(_receive_buffer_tail + _SS_MAX_RX_BUFF - _receive_buffer_head)) % _SS_MAX_RX_BUFF;
413
}
414
415
size_t SoftwareSerial::write(uint8_t b)
0 commit comments