From 144be2df6ba15a6ded1840497a4ee42b4845d257 Mon Sep 17 00:00:00 2001 From: hreintke Date: Wed, 4 Jul 2018 16:39:08 +0200 Subject: [PATCH] ScheduledInterrupts should still use current schedule_function(..) --- cores/esp8266/FunctionalInterrupt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/esp8266/FunctionalInterrupt.cpp b/cores/esp8266/FunctionalInterrupt.cpp index 84ae8f4289..2b16fb899f 100644 --- a/cores/esp8266/FunctionalInterrupt.cpp +++ b/cores/esp8266/FunctionalInterrupt.cpp @@ -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) {