From 7b316f48f12566f3d9a52ef81d8e722a6600f477 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 12 Oct 2019 16:42:11 +0200 Subject: [PATCH] Change max rule compare string size from 23 to 79 Change max rule compare string size from 23 to 79 (#6624) --- sonoff/xdrv_10_rules.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xdrv_10_rules.ino b/sonoff/xdrv_10_rules.ino index 04a6d3413..d5d074a6f 100644 --- a/sonoff/xdrv_10_rules.ino +++ b/sonoff/xdrv_10_rules.ino @@ -204,7 +204,7 @@ bool RulesRuleMatch(uint8_t rule_set, String &event, String &rule) String rule_name, rule_param; int8_t compareOperator = parseCompareExpression(rule_expr, rule_name, rule_param); //Parse the compare expression.Return operator and the left, right part of expression - char rule_svalue[CMDSZ] = { 0 }; + char rule_svalue[80] = { 0 }; float rule_value = 0; if (compareOperator != COMPARE_OPERATOR_NONE) { for (uint32_t i = 0; i < MAX_RULE_VARS; i++) {