do not prepend "backlog0" chain with "backlog"

This commit is contained in:
Bernhard Kirchen 2022-04-15 18:54:53 +02:00
parent 964f0bd62d
commit d542da0780
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}