Skip to content

Commit 3ce09a7

Browse files
committed
Timer reset reliability fix.
1 parent d6b314e commit 3ce09a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/esp8266/Schedule.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ void run_scheduled_recurrent_functions ()
169169
const bool wakeupToken = current->wakeupToken && current->wakeupToken->load();
170170
const bool wakeup = current->wakeupTokenCmp != wakeupToken;
171171
if (wakeup) current->wakeupTokenCmp = wakeupToken;
172+
bool callNow = current->callNow;
172173

173-
if ((wakeup || current->callNow) && !current->mFunc())
174+
if ((wakeup || callNow) && !current->mFunc())
174175
{
175176
// remove function from stack
176177
esp8266::InterruptLock lockAllInterruptsInThisScope;

0 commit comments

Comments
 (0)