From e42c87c9f3ccf6746d231d7382eeb70d3bc270cc Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Thu, 29 Oct 2020 12:50:02 +0100 Subject: [PATCH] Fix compilation --- tasmota/xdrv_23_zigbee_A_impl.ino | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasmota/xdrv_23_zigbee_A_impl.ino b/tasmota/xdrv_23_zigbee_A_impl.ino index 2509c4eb8..04bfbd3ec 100644 --- a/tasmota/xdrv_23_zigbee_A_impl.ino +++ b/tasmota/xdrv_23_zigbee_A_impl.ino @@ -969,7 +969,12 @@ void CmndZbBindState_or_Map(uint16_t zdo_cmd) { // `ZbBindState` as index if it does not fit. If default, `1` starts at the beginning // void CmndZbBindState(void) { +#ifdef USE_ZIGBEE_ZNP + CmndZbBindState_or_Map(ZDO_MGMT_BIND_REQ); +#endif // USE_ZIGBEE_ZNP +#ifdef USE_ZIGBEE_EZSP CmndZbBindState_or_Map(ZDO_Mgmt_Bind_req); +#endif // USE_ZIGBEE_EZSP } // @@ -977,7 +982,12 @@ void CmndZbBindState(void) { // `ZbMap` as index if it does not fit. If default, `1` starts at the beginning // void CmndZbMap(void) { +#ifdef USE_ZIGBEE_ZNP + CmndZbBindState_or_Map(ZDO_MGMT_LQI_REQ); +#endif // USE_ZIGBEE_ZNP +#ifdef USE_ZIGBEE_EZSP CmndZbBindState_or_Map(ZDO_Mgmt_Lqi_req); +#endif // USE_ZIGBEE_EZSP } // Probe a specific device to get its endpoints and supported clusters