Test rule IF/ENDIF

Test rule IF/ENDIF (#13576)
This commit is contained in:
Theo Arends 2021-11-06 12:03:31 +01:00
parent 5de7552a40
commit debaf0846d

View File

@ -1941,6 +1941,7 @@ void ExecuteCommandBlock(const char * commands, int len)
//Going to insert the command into backlog
String sCurrentCommand = oneCommand;
sCurrentCommand.trim();
/*
if (sCurrentCommand.length() > 0
&& backlog.size() < MAX_BACKLOG && !TasmotaGlobal.backlog_mutex)
{
@ -1950,6 +1951,12 @@ void ExecuteCommandBlock(const char * commands, int len)
TasmotaGlobal.backlog_mutex = false;
insertPosition++;
}
*/
if ((sCurrentCommand.length() > 0) && (backlog.size() < MAX_BACKLOG)) {
//Insert into backlog
backlog.add(insertPosition, sCurrentCommand);
insertPosition++;
}
}
return;
}