mirror of https://github.com/arendst/Tasmota.git
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,
|
// button interval had not elapsed,
|
||||||
if (button_unprocessed[button_index]) {
|
if (button_unprocessed[button_index]) {
|
||||||
mqtt_trigger = 5;
|
mqtt_trigger = 5;
|
||||||
|
#ifdef USE_PWM_DIMMER_REMOTE
|
||||||
if (!active_remote_pwm_dimmer) mqtt_trigger += button_index;
|
if (!active_remote_pwm_dimmer) mqtt_trigger += button_index;
|
||||||
|
#endif // USE_PWM_DIMMER_REMOTE
|
||||||
button_hold_time[button_index] = now + 750;
|
button_hold_time[button_index] = now + 750;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue