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 4cbe06b commit 20e6378Copy full SHA for 20e6378
cores/esp8266/PolledTimeout.h
@@ -247,8 +247,8 @@ class timeoutTemplate
247
bool checkExpired(const timeType internalUnit) const
248
{
249
// canWait() is not checked here
250
- // returns "can expire" and "oneshot not expired" and "time expired"
251
- return (_oneShotExpired) || ((!_neverExpires) && ((internalUnit - _start) >= _timeout));
+ // returns "oneshot has expired", otherwise returns "can expire" and "time has expired"
+ return _oneShotExpired || (!_neverExpires && ((internalUnit - _start) >= _timeout));
252
}
253
254
protected:
0 commit comments