increasing in color temperature change speed

This commit is contained in:
Janusz Kostorz 2020-06-04 22:27:30 +02:00 committed by GitHub
parent dac14073c9
commit c20bb9ab58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ void RotaryHandler(void)
Rotary.changed = 1;
// button1 is pressed: set color temperature
int16_t t = LightGetColorTemp();
t = t + (Rotary.position - Rotary.last_position);
t = t + ((Rotary.position - Rotary.last_position) * 4);
if (t < 153) {
t = 153;
}