mirror of https://github.com/arendst/Tasmota.git
Fixed Color was wrongly changing Dimmer
This commit is contained in:
parent
efea6bb794
commit
d878a42a62
|
@ -1699,11 +1699,8 @@ bool LightCommand(void)
|
||||||
uint8_t old_bri = light_state.getBri();
|
uint8_t old_bri = light_state.getBri();
|
||||||
// change all channels to specified values
|
// change all channels to specified values
|
||||||
light_controller.changeChannels(light_entry_color);
|
light_controller.changeChannels(light_entry_color);
|
||||||
if ((CMND_COLOR == command_code) && (1 == XdrvMailbox.index)) {
|
if (2 == XdrvMailbox.index) {
|
||||||
// If Color(1) then reset brightness to maximum;
|
// If Color2, set back old brightness
|
||||||
light_controller.changeBri(255);
|
|
||||||
} else {
|
|
||||||
// else set back initial brightness
|
|
||||||
light_controller.changeBri(old_bri);
|
light_controller.changeBri(old_bri);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue