From 841df72580fd306a7db9d2f7b15cdaf2ea7f9052 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 22 Jun 2021 17:30:45 +0200 Subject: [PATCH] Remove redundant code --- tasmota/xdrv_10_rules.ino | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tasmota/xdrv_10_rules.ino b/tasmota/xdrv_10_rules.ino index 4dc784da1..9ebea0f39 100644 --- a/tasmota/xdrv_10_rules.ino +++ b/tasmota/xdrv_10_rules.ino @@ -510,15 +510,11 @@ bool RulesRuleMatch(uint8_t rule_set, String &event, String &rule, bool stop_all String buf = event; // Copy the string into a new buffer that will be modified -//AddLog(LOG_LEVEL_DEBUG, PSTR("RUL-RM2: RulesRuleMatch |%s|"), buf.c_str()); - // Do not do below replace as it will replace escaped quote too. // buf.replace("\\"," "); // "Disable" any escaped control character - buf.replace("\n"," n"); // "Disable" escaped control character - buf.replace("\t"," t"); // "Disable" escaped control character - buf.replace("\r"," r"); // "Disable" escaped control character - buf.replace("\f"," f"); // "Disable" escaped control character - buf.replace("\b"," b"); // "Disable" escaped control character + +//AddLog(LOG_LEVEL_DEBUG, PSTR("RUL-RM2: RulesRuleMatch |%s|"), buf.c_str()); + JsonParser parser((char*)buf.c_str()); JsonParserObject obj = parser.getRootObject(); if (!obj) {