Fix color temperature persistence on CWWW lights (#2486)

This commit is contained in:
Jan Čermák 2021-10-11 23:56:35 +02:00 committed by GitHub
parent 039fbc677d
commit 85461a752a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -532,7 +532,8 @@ LightCall &LightCall::set_white_if_supported(float white) {
return *this;
}
LightCall &LightCall::set_color_temperature_if_supported(float color_temperature) {
if (this->get_active_color_mode_() & ColorCapability::COLOR_TEMPERATURE)
if (this->get_active_color_mode_() & ColorCapability::COLOR_TEMPERATURE ||
this->get_active_color_mode_() & ColorCapability::COLD_WARM_WHITE)
this->set_color_temperature(color_temperature);
return *this;
}