mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
Wrap remote dimmer reference in ifdef
This commit is contained in:
parent
5f1a24370f
commit
e1391acaba
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user