Skip to content

Commit 87991ab

Browse files
hreintkedevyte
authored andcommitted
ScheduledInterrupts should still use current schedule_function(..) (#4890)
1 parent 672c3f8 commit 87991ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/esp8266/FunctionalInterrupt.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ void interruptFunctional(void* arg)
1616
ArgStructure* localArg = (ArgStructure*)arg;
1717
if (localArg->functionInfo->reqScheduledFunction)
1818
{
19-
scheduledInterrupts->scheduleFunctionReg(std::bind(localArg->functionInfo->reqScheduledFunction,InterruptInfo(*(localArg->interruptInfo))), false, true);
19+
schedule_function(std::bind(localArg->functionInfo->reqScheduledFunction,InterruptInfo(*(localArg->interruptInfo))));
20+
// scheduledInterrupts->scheduleFunctionReg(std::bind(localArg->functionInfo->reqScheduledFunction,InterruptInfo(*(localArg->interruptInfo))), false, true);
2021
}
2122
if (localArg->functionInfo->reqFunction)
2223
{

0 commit comments

Comments
 (0)