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 232961e commit 210c3d4Copy full SHA for 210c3d4
cores/esp8266/PolledTimeout.h
@@ -269,10 +269,16 @@ class timeoutTemplate
269
}
270
271
IRAM_ATTR // fast
272
- bool expiredOneShot() const
+ bool expiredOneShot()
273
{
274
// returns "always expired" or "has expired"
275
- return !canWait() || checkExpired(TimePolicyT::time());
+ return !canWait();
276
+ if (checkExpired(TimePolicyT::time()))
277
+ {
278
+ _timeout = alwaysExpired;
279
+ return true;
280
+ }
281
+ return false;
282
283
284
timeType _timeout;
0 commit comments