mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
parent
5de7552a40
commit
debaf0846d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user