Skip to content

Commit 20e6378

Browse files
committed
Fix comment, remove redundant parentheses
1 parent 4cbe06b commit 20e6378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp8266/PolledTimeout.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ class timeoutTemplate
247247
bool checkExpired(const timeType internalUnit) const
248248
{
249249
// canWait() is not checked here
250-
// returns "can expire" and "oneshot not expired" and "time expired"
251-
return (_oneShotExpired) || ((!_neverExpires) && ((internalUnit - _start) >= _timeout));
250+
// returns "oneshot has expired", otherwise returns "can expire" and "time has expired"
251+
return _oneShotExpired || (!_neverExpires && ((internalUnit - _start) >= _timeout));
252252
}
253253

254254
protected:

0 commit comments

Comments
 (0)