Skip to content

Commit 8ffb0c2

Browse files
committed
Fix "reverse notation return statement"
1 parent 5b942e4 commit 8ffb0c2

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
@@ -272,7 +272,7 @@ class timeoutTemplate
272272
bool expiredOneShot()
273273
{
274274
// returns "always expired" or "has expired"
275-
return !canWait();
275+
if (!canWait()) return true;
276276
if (checkExpired(TimePolicyT::time()))
277277
{
278278
_timeout = alwaysExpired;

0 commit comments

Comments
 (0)