You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking on SerialUART.cpp the function is returning a bool condition instead os number of available bytes, a lot of libs use that like Nexion.
This is the current code:
int HardwareSerial::available() {
return rxEnd != rxStart;
}
This is the fix:
int HardwareSerial::available() {
//return rxEnd != rxStart;
int size = (rxEnd % BUFFER_SIZE) - (rxStart % BUFFER_SIZE);
if (size < 0) size += BUFFER_SIZE;
return size;
}
Tested and working properly now.
The text was updated successfully, but these errors were encountered:
Hi, The current version does not have this fix yet. Manually adding the this code to the core works fine! I had problems with a project and this little thing. Can you please add the fix to the master branch?
Looking on SerialUART.cpp the function is returning a bool condition instead os number of available bytes, a lot of libs use that like Nexion.
This is the current code:
This is the fix:
Tested and working properly now.
The text was updated successfully, but these errors were encountered: