Compare commits
4 commits
7855eaae38
...
3f697e0b12
Author | SHA1 | Date | |
---|---|---|---|
|
3f697e0b12 | ||
|
5f84840a00 | ||
|
013cd8a8bf | ||
|
2714e05173 |
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -157,12 +157,12 @@ void lightEngine()
|
|||
//Serial.println("lon: pin" + (String)i + " = PWM(" + (String)tmp_pwm + ")");
|
||||
analogWrite(pins[i], tmp_pwm);
|
||||
}
|
||||
} else {
|
||||
} else { // light state is off
|
||||
|
||||
if (current_bri[i] != 0)
|
||||
{
|
||||
in_transition = true;
|
||||
current_bri[i] -= step_level[i] / BRI_MOD_STEPS_PER_SEC;
|
||||
current_bri[i] += step_level[i] / BRI_MOD_STEPS_PER_SEC;
|
||||
if (current_bri[i] < 0)
|
||||
{
|
||||
current_bri[i] = 0;
|
||||
|
|
Loading…
Reference in a new issue