Skip to content

Commit 36241a9

Browse files
committed
Fix "reverse notation return statement"
1 parent 0743684 commit 36241a9

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

0 commit comments

Comments
 (0)