mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-30 06:06:36 +00:00
Merge pull request #8618 from jkostorz/patch-1
increasing in color temperature change speed
This commit is contained in:
commit
f95a0d13d1
@ -117,7 +117,7 @@ void RotaryHandler(void)
|
|||||||
Rotary.changed = 1;
|
Rotary.changed = 1;
|
||||||
// button1 is pressed: set color temperature
|
// button1 is pressed: set color temperature
|
||||||
int16_t t = LightGetColorTemp();
|
int16_t t = LightGetColorTemp();
|
||||||
t = t + (Rotary.position - Rotary.last_position);
|
t = t + ((Rotary.position - Rotary.last_position) * 4);
|
||||||
if (t < 153) {
|
if (t < 153) {
|
||||||
t = 153;
|
t = 153;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user