We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc3db41 commit 0743684Copy full SHA for 0743684
cores/esp8266/PolledTimeout.h
@@ -268,10 +268,16 @@ class timeoutTemplate
268
}
269
270
IRAM_ATTR // fast
271
- bool expiredOneShot() const
+ bool expiredOneShot()
272
{
273
// returns "always expired" or "has expired"
274
- return !canWait() || checkExpired(TimePolicyT::time());
+ return !canWait();
275
+ if (checkExpired(TimePolicyT::time()))
276
+ {
277
+ _timeout = alwaysExpired;
278
+ return true;
279
+ }
280
+ return false;
281
282
283
timeType _timeout;
0 commit comments