mirror of https://github.com/arendst/Tasmota.git
Fix compilation for ZBBridge
This commit is contained in:
parent
f3591b8419
commit
bb3960711f
|
@ -1067,7 +1067,7 @@ void CmndZbRestore(void) {
|
||||||
JsonParser parser(XdrvMailbox.data);
|
JsonParser parser(XdrvMailbox.data);
|
||||||
JsonParserToken root = parser.getRoot();
|
JsonParserToken root = parser.getRoot();
|
||||||
|
|
||||||
if (!p || !(root.isObject() || root.isArray())) { ResponseCmndChar_P(PSTR(D_JSON_INVALID_JSON)); return; }
|
if (!parser || !(root.isObject() || root.isArray())) { ResponseCmndChar_P(PSTR(D_JSON_INVALID_JSON)); return; }
|
||||||
|
|
||||||
// Check is root contains `ZbStatus<x>` key, if so change the root
|
// Check is root contains `ZbStatus<x>` key, if so change the root
|
||||||
JsonParserToken zbstatus = root.getObject().findStartsWith(PSTR("ZbStatus"));
|
JsonParserToken zbstatus = root.getObject().findStartsWith(PSTR("ZbStatus"));
|
||||||
|
|
Loading…
Reference in New Issue