From 6cc4f224cfad7d36a1e4f6709e34d4d7c78ff4c7 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 15 Mar 2020 14:53:05 +0100 Subject: [PATCH] Fix compile error when hue emulation disabled --- tasmota/xdrv_23_zigbee_3_hue.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_23_zigbee_3_hue.ino b/tasmota/xdrv_23_zigbee_3_hue.ino index bb3fce2dd..baab88d8f 100644 --- a/tasmota/xdrv_23_zigbee_3_hue.ino +++ b/tasmota/xdrv_23_zigbee_3_hue.ino @@ -18,6 +18,7 @@ */ #ifdef USE_ZIGBEE +#if defined(USE_WEBSERVER) && defined(USE_EMULATION) && defined(USE_EMULATION_HUE) && defined(USE_LIGHT) // Add global functions for Hue Emulation @@ -296,4 +297,5 @@ void ZigbeeHandleHue(uint16_t shortaddr, uint32_t device_id, String &response) { free(buf); } -#endif // USE_ZIGBEE +#endif // USE_WEBSERVER && USE_EMULATION && USE_EMULATION_HUE +#endif // USE_ZIGBEE