mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 19:56:30 +00:00
parent
5de7552a40
commit
debaf0846d
@ -1941,6 +1941,7 @@ void ExecuteCommandBlock(const char * commands, int len)
|
|||||||
//Going to insert the command into backlog
|
//Going to insert the command into backlog
|
||||||
String sCurrentCommand = oneCommand;
|
String sCurrentCommand = oneCommand;
|
||||||
sCurrentCommand.trim();
|
sCurrentCommand.trim();
|
||||||
|
/*
|
||||||
if (sCurrentCommand.length() > 0
|
if (sCurrentCommand.length() > 0
|
||||||
&& backlog.size() < MAX_BACKLOG && !TasmotaGlobal.backlog_mutex)
|
&& backlog.size() < MAX_BACKLOG && !TasmotaGlobal.backlog_mutex)
|
||||||
{
|
{
|
||||||
@ -1950,6 +1951,12 @@ void ExecuteCommandBlock(const char * commands, int len)
|
|||||||
TasmotaGlobal.backlog_mutex = false;
|
TasmotaGlobal.backlog_mutex = false;
|
||||||
insertPosition++;
|
insertPosition++;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
if ((sCurrentCommand.length() > 0) && (backlog.size() < MAX_BACKLOG)) {
|
||||||
|
//Insert into backlog
|
||||||
|
backlog.add(insertPosition, sCurrentCommand);
|
||||||
|
insertPosition++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user