mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 13:46:37 +00:00
Fix compilation for ZBBridge
This commit is contained in:
parent
f3591b8419
commit
bb3960711f
@ -1067,7 +1067,7 @@ void CmndZbRestore(void) {
|
||||
JsonParser parser(XdrvMailbox.data);
|
||||
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
|
||||
JsonParserToken zbstatus = root.getObject().findStartsWith(PSTR("ZbStatus"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user