enabling light will also broadcast dimmer value (as reequested by user...) - p2

This commit is contained in:
openshwprojects
2022-11-30 00:07:25 +01:00
parent 5b89deb036
commit deea0e784d

View File

@ -518,10 +518,12 @@ void LED_SetEnableAll(int bEnable) {
DRV_DGR_OnLedEnableAllChange(bEnable);
#endif
LED_SendEnableAllState();
// if enable all was set to 1 this frame, also send dimmer
// https://github.com/openshwprojects/OpenBK7231T_App/issues/498
// TODO: check if it's OK
LED_SendDimmerChange();
if (bEnableAllWasSetTo1) {
// if enable all was set to 1 this frame, also send dimmer
// https://github.com/openshwprojects/OpenBK7231T_App/issues/498
// TODO: check if it's OK
LED_SendDimmerChange();
}
}
int LED_GetEnableAll() {
return g_lightEnableAll;