Skip to content

Commit ce6982b

Browse files
committed
Fix comment, remove redundant parentheses
1 parent 2a6bbf5 commit ce6982b

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
@@ -246,8 +246,8 @@ class timeoutTemplate
246246
bool checkExpired(const timeType internalUnit) const
247247
{
248248
// canWait() is not checked here
249-
// returns "can expire" and "oneshot not expired" and "time expired"
250-
return (_oneShotExpired) || ((!_neverExpires) && ((internalUnit - _start) >= _timeout));
249+
// returns "oneshot has expired", otherwise returns "can expire" and "time has expired"
250+
return _oneShotExpired || (!_neverExpires && ((internalUnit - _start) >= _timeout));
251251
}
252252

253253
protected:

0 commit comments

Comments
 (0)