Skip to content

Commit 4eab7e4

Browse files
committed
Somewhat easier on the human reader.
1 parent c88af7b commit 4eab7e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/PolledTimeout.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class timeoutTemplate
176176

177177
bool canWait () const
178178
{
179-
return _timeout != 0 && !_oneShotExpired;
179+
return !(_timeout == 0 || _oneShotExpired);
180180
}
181181

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

0 commit comments

Comments
 (0)