We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a6bbf5 commit ce6982bCopy full SHA for ce6982b
cores/esp8266/PolledTimeout.h
@@ -246,8 +246,8 @@ class timeoutTemplate
246
bool checkExpired(const timeType internalUnit) const
247
{
248
// canWait() is not checked here
249
- // returns "can expire" and "oneshot not expired" and "time expired"
250
- return (_oneShotExpired) || ((!_neverExpires) && ((internalUnit - _start) >= _timeout));
+ // returns "oneshot has expired", otherwise returns "can expire" and "time has expired"
+ return _oneShotExpired || (!_neverExpires && ((internalUnit - _start) >= _timeout));
251
}
252
253
protected:
0 commit comments