Skip to content

Commit

Permalink
Merge pull request letscontrolit#1770 from TD-er/bugfix/revert_disabl…
Browse files Browse the repository at this point in the history
…e_command_scheduler_0915

Revert "[Scheduler] Disable command scheduler"
  • Loading branch information
TD-er authored Sep 21, 2018
2 parents ac83cfa + 0a63aeb commit 27a03f1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Command.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27a03f1

Please sign in to comment.