Send DGR BRI_MIN only if USE_PWM_DIMMER defined

This commit is contained in:
Paul C Diem 2020-03-13 15:15:38 -05:00
parent a72acf37fe
commit 243f17585c
1 changed files with 2 additions and 2 deletions

View File

@ -2553,10 +2553,10 @@ void CmndDimmer(void)
LightPreparePower();
}
}
#ifdef USE_DEVICE_GROUPS
#if defined(USE_PWM_DIMMER) && defined(USE_DEVICE_GROUPS)
Settings.bri_power_on = light_state.getBri();;
SendLocalDeviceGroupMessage(DGR_MSGTYP_UPDATE, DGR_ITEM_BRI_POWER_ON, Settings.bri_power_on);
#endif // USE_DEVICE_GROUPS
#endif // USE_PWM_DIMMER && USE_DEVICE_GROUPS
Light.update = true;
if (skip_light_fade) LightAnimate();
} else {