Skip to content

Commit 8a9d25b

Browse files
committed
Somewhat easier on the human reader.
1 parent e942bcc commit 8a9d25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/PolledTimeout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class timeoutTemplate
175175

176176
bool canWait () const
177177
{
178-
return _timeout != 0 && !_oneShotExpired;
178+
return !(_timeout == 0 || _oneShotExpired);
179179
}
180180

181181
// Resets, will trigger after this new timeout.

0 commit comments

Comments
 (0)