Final fix rule trigger support for status 11

Final fix rule trigger support for status 11 (#9053)
This commit is contained in:
Theo Arends 2020-08-12 10:59:56 +02:00
parent 6394414d4e
commit d9ed055a3b
1 changed files with 2 additions and 1 deletions

View File

@ -497,7 +497,8 @@ bool RulesRuleMatch(uint8_t rule_set, String &event, String &rule)
rule_name = rule_name.substring(0, pos); // "SUBTYPE1#CURRENT"
}
StaticJsonBuffer<1280> jsonBuf; // Was 1024 until 20200811
// StaticJsonBuffer<1280> jsonBuf; // Was 1024 until 20200811
DynamicJsonBuffer jsonBuf; // Was static until 20200812
JsonObject &root = jsonBuf.parseObject(event);
if (!root.success()) {
AddLog_P2(LOG_LEVEL_DEBUG, PSTR("RUL: Event too long (%d)"), event.length());