mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
ScheduledInterrupts should still use current schedule_function(..) (#4890)
This commit is contained in:
parent
672c3f8d79
commit
87991aba9f
@ -16,7 +16,8 @@ void interruptFunctional(void* arg)
|
|||||||
ArgStructure* localArg = (ArgStructure*)arg;
|
ArgStructure* localArg = (ArgStructure*)arg;
|
||||||
if (localArg->functionInfo->reqScheduledFunction)
|
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)
|
if (localArg->functionInfo->reqFunction)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user