From debaf0846d3ab5bbe02158b945b05eb74336dac7 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 6 Nov 2021 12:03:31 +0100 Subject: [PATCH] Test rule IF/ENDIF Test rule IF/ENDIF (#13576) --- tasmota/xdrv_10_rules.ino | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasmota/xdrv_10_rules.ino b/tasmota/xdrv_10_rules.ino index 16ab3db18..c1dd8a64b 100644 --- a/tasmota/xdrv_10_rules.ino +++ b/tasmota/xdrv_10_rules.ino @@ -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; }