From e1391acaba7cc8fdab34c350544583adc46de01f Mon Sep 17 00:00:00 2001 From: Paul C Diem Date: Sat, 12 Dec 2020 15:09:49 -0600 Subject: [PATCH] Wrap remote dimmer reference in ifdef --- tasmota/xdrv_35_pwm_dimmer.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/xdrv_35_pwm_dimmer.ino b/tasmota/xdrv_35_pwm_dimmer.ino index dc9fe0bfe..c54d071f1 100644 --- a/tasmota/xdrv_35_pwm_dimmer.ino +++ b/tasmota/xdrv_35_pwm_dimmer.ino @@ -289,7 +289,9 @@ void PWMDimmerHandleButton(uint32_t button_index, bool pressed) // button interval had not elapsed, if (button_unprocessed[button_index]) { mqtt_trigger = 5; +#ifdef USE_PWM_DIMMER_REMOTE if (!active_remote_pwm_dimmer) mqtt_trigger += button_index; +#endif // USE_PWM_DIMMER_REMOTE button_hold_time[button_index] = now + 750; }