-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
This timeout math looks like it will not work properly during a millis() rollover.
I think first two lines here should be changed to the last two lines:
//int timeout_at = millis() + _timeout;
//while (!client.available() && timeout_at - millis() < 0) {
unsigned long start = millis();
while (!client.available() && millis() - start < _timeout) { //millis() - start < ms
Metadata
Metadata
Assignees
Labels
No labels