From 99cfd1dcfccd9a65789942d545b78d5201cbbc51 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Tue, 14 Sep 2021 08:58:27 +0200 Subject: [PATCH] quick fix since this causes a crash on ESP32 --- tasmota/xdrv_23_zigbee_A_impl.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/xdrv_23_zigbee_A_impl.ino b/tasmota/xdrv_23_zigbee_A_impl.ino index ebc71e9cc..bb241d5e4 100644 --- a/tasmota/xdrv_23_zigbee_A_impl.ino +++ b/tasmota/xdrv_23_zigbee_A_impl.ino @@ -1491,6 +1491,7 @@ void CmndZbEZSPListen(void) { } void ZigbeeGlowPermitJoinLight(void) { +#ifdef ESP8266 // quick fix since this causes a crash on ESP32 static const uint16_t cycle_time = 1000; // cycle up and down in 1000 ms static const uint16_t half_cycle_time = cycle_time / 2; // cycle up and down in 1000 ms @@ -1511,6 +1512,7 @@ void ZigbeeGlowPermitJoinLight(void) { if (led_pin >= 0) { analogWrite(led_pin, TasmotaGlobal.ledlnk_inverted ? 1023 - led_power : led_power); } +#endif } #endif // USE_ZIGBEE_EZSP