Skip to content

Commit

Permalink
ScheduledInterrupts should still use current schedule_function(..) (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
hreintke authored and devyte committed Jul 4, 2018
1 parent 672c3f8 commit 87991ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cores/esp8266/FunctionalInterrupt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ void interruptFunctional(void* arg)
ArgStructure* localArg = (ArgStructure*)arg;
if (localArg->functionInfo->reqScheduledFunction)
{
scheduledInterrupts->scheduleFunctionReg(std::bind(localArg->functionInfo->reqScheduledFunction,InterruptInfo(*(localArg->interruptInfo))), false, true);
schedule_function(std::bind(localArg->functionInfo->reqScheduledFunction,InterruptInfo(*(localArg->interruptInfo))));
// scheduledInterrupts->scheduleFunctionReg(std::bind(localArg->functionInfo->reqScheduledFunction,InterruptInfo(*(localArg->interruptInfo))), false, true);
}
if (localArg->functionInfo->reqFunction)
{
Expand Down

0 comments on commit 87991ab

Please sign in to comment.