From d542da0780e35628ab0b4df811fe33a93e8c650a Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Fri, 15 Apr 2022 18:54:53 +0200 Subject: [PATCH 1/2] do not prepend "backlog0" chain with "backlog" --- tasmota/xdrv_10_rules.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/xdrv_10_rules.ino b/tasmota/xdrv_10_rules.ino index 152824fd3..edb995930 100644 --- a/tasmota/xdrv_10_rules.ino +++ b/tasmota/xdrv_10_rules.ino @@ -772,6 +772,7 @@ bool RuleSetProcess(uint8_t rule_set, String &event_saved) // Use Backlog with event to prevent rule event loop exception unless IF is used which uses an implicit backlog if ((ucommand.indexOf(F("IF ")) == -1) && (ucommand.indexOf(F("EVENT ")) != -1) && + (ucommand.indexOf(F("BACKLOG0 ")) == -1) && (ucommand.indexOf(F("BACKLOG ")) == -1)) { commands = String(F("backlog ")) + commands; } From 11e860eb6f37a14caeca99b68f2153d375ca1d40 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <39969427+ascillato2@users.noreply.github.com> Date: Wed, 20 Apr 2022 12:40:07 -0300 Subject: [PATCH 2/2] Fix Backlog0 in rules --- tasmota/xdrv_10_rules.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasmota/xdrv_10_rules.ino b/tasmota/xdrv_10_rules.ino index edb995930..c630676a1 100644 --- a/tasmota/xdrv_10_rules.ino +++ b/tasmota/xdrv_10_rules.ino @@ -772,8 +772,7 @@ bool RuleSetProcess(uint8_t rule_set, String &event_saved) // Use Backlog with event to prevent rule event loop exception unless IF is used which uses an implicit backlog if ((ucommand.indexOf(F("IF ")) == -1) && (ucommand.indexOf(F("EVENT ")) != -1) && - (ucommand.indexOf(F("BACKLOG0 ")) == -1) && - (ucommand.indexOf(F("BACKLOG ")) == -1)) { + (ucommand.indexOf(F("BACKLOG")) == -1)) { commands = String(F("backlog ")) + commands; }