Merge branch 'develop'

This commit is contained in:
Kai Lauterbach 2023-05-12 07:20:08 +02:00
commit 5f84840a00

View file

@ -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;