Merge branch 'develop'
This commit is contained in:
commit
5f84840a00
1 changed files with 2 additions and 2 deletions
|
@ -157,12 +157,12 @@ void lightEngine()
|
||||||
//Serial.println("lon: pin" + (String)i + " = PWM(" + (String)tmp_pwm + ")");
|
//Serial.println("lon: pin" + (String)i + " = PWM(" + (String)tmp_pwm + ")");
|
||||||
analogWrite(pins[i], tmp_pwm);
|
analogWrite(pins[i], tmp_pwm);
|
||||||
}
|
}
|
||||||
} else {
|
} else { // light state is off
|
||||||
|
|
||||||
if (current_bri[i] != 0)
|
if (current_bri[i] != 0)
|
||||||
{
|
{
|
||||||
in_transition = true;
|
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)
|
if (current_bri[i] < 0)
|
||||||
{
|
{
|
||||||
current_bri[i] = 0;
|
current_bri[i] = 0;
|
||||||
|
|
Loading…
Reference in a new issue