mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-19 08:46:32 +00:00
Refactor fix light scheme related color changes
This commit is contained in:
parent
947c8ccf0f
commit
fd1eb08b6e
@ -1085,11 +1085,7 @@ void LightCalcPWMRange(void) {
|
|||||||
|
|
||||||
void LightSetScheme(uint32_t scheme) {
|
void LightSetScheme(uint32_t scheme) {
|
||||||
if (!scheme && Settings.light_scheme) {
|
if (!scheme && Settings.light_scheme) {
|
||||||
if (Light.last_color[0] < 255) {
|
Light.update = true;
|
||||||
Light.last_color[0]++;
|
|
||||||
} else {
|
|
||||||
Light.last_color[0]--;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Settings.light_scheme = scheme;
|
Settings.light_scheme = scheme;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user