From 7a9e539f1cc69abe4237cc7fdad6402aadf558c2 Mon Sep 17 00:00:00 2001 From: Paul C Diem Date: Mon, 5 Oct 2020 15:58:17 -0500 Subject: [PATCH] Wrap Light.devgrp_no_channels_out in #ifdef USE_DEVICE_GROUPS --- tasmota/xdrv_35_pwm_dimmer.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/xdrv_35_pwm_dimmer.ino b/tasmota/xdrv_35_pwm_dimmer.ino index c895cf67b..e26d60b3c 100644 --- a/tasmota/xdrv_35_pwm_dimmer.ino +++ b/tasmota/xdrv_35_pwm_dimmer.ino @@ -620,9 +620,13 @@ void PWMDimmerHandleButton(void) else { #endif // USE_PWM_DIMMER_REMOTE light_state.setBri(power_on_bri); +#ifdef USE_DEVICE_GROUPS Light.devgrp_no_channels_out = true; +#endif // USE_DEVICE_GROUPS ExecuteCommandPower(1, POWER_TOGGLE, SRC_RETRY); +#ifdef USE_DEVICE_GROUPS Light.devgrp_no_channels_out = false; +#endif // USE_DEVICE_GROUPS #ifdef USE_PWM_DIMMER_REMOTE } #endif // USE_PWM_DIMMER_REMOTE