Fix compilation for ZBBridge

This commit is contained in:
Stephan Hadinger 2020-09-23 19:52:34 +02:00
parent f3591b8419
commit bb3960711f
1 changed files with 1 additions and 1 deletions

View File

@ -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"));