From 0a63aeb8f0d772024a147f8b2e4b81caad52b91d Mon Sep 17 00:00:00 2001 From: TD-er Date: Fri, 14 Sep 2018 21:23:09 +0200 Subject: [PATCH] Revert "[Scheduler] Disable command scheduler" This reverts commit 38af765935a3584796f01fe55871b092632b21c2. --- src/Command.ino | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Command.ino b/src/Command.ino index b1d33afc0d..ec0656e381 100644 --- a/src/Command.ino +++ b/src/Command.ino @@ -222,20 +222,16 @@ void ExecuteCommand(byte source, const char *Line) if (GetArgv(Line, TmpStr1, 5)) TempEvent.Par4 = CalculateParam(TmpStr1); if (GetArgv(Line, TmpStr1, 6)) TempEvent.Par5 = CalculateParam(TmpStr1); - // FIXME: TD-er Disabling scheduling commands. - // Gives too much issues. - // if (source == VALUE_SOURCE_WEB_FRONTEND) { + if (source == VALUE_SOURCE_WEB_FRONTEND) { // Must run immediately, to see result in web frontend String status = doExecuteCommand((char*)&cmd[0], &TempEvent, Line); yield(); SendStatus(source, status); yield(); -/* } else { // Schedule to run async schedule_command_timer((char*)&cmd[0], &TempEvent, Line); } -*/ } #ifdef FEATURE_SD