Merge pull request #15375 from schlimmchen/fix-backlogging-backlog0

Fix prepending "backlog0" chain with "backlog" in rules
This commit is contained in:
Theo Arends 2022-04-20 17:50:55 +02:00 committed by GitHub
commit 4e19c7a514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -772,7 +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("BACKLOG ")) == -1)) {
(ucommand.indexOf(F("BACKLOG")) == -1)) {
commands = String(F("backlog ")) + commands;
}