Compare commits

..

No commits in common. "013cd8a8bfab8ac44297b29a67dcf7ac2dc7699b" and "9d02e054f582b15dd4ab0ba13db1d1f3cb48baa4" have entirely different histories.

View file

@ -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 { // light state is off } else {
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;