From bb3960711f17137eeecff51d83ea197de8a9d550 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Wed, 23 Sep 2020 19:52:34 +0200 Subject: [PATCH] Fix compilation for ZBBridge --- tasmota/xdrv_23_zigbee_A_impl.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_23_zigbee_A_impl.ino b/tasmota/xdrv_23_zigbee_A_impl.ino index 09a96dae1..90cc4e28c 100644 --- a/tasmota/xdrv_23_zigbee_A_impl.ino +++ b/tasmota/xdrv_23_zigbee_A_impl.ino @@ -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` key, if so change the root JsonParserToken zbstatus = root.getObject().findStartsWith(PSTR("ZbStatus"));