Compare commits

..

No commits in common. "a9e8e2a7780aa42273757098a30681130cd02d8f" and "2e340d0cc858ec646ab15b59dedec251492fdbc5" have entirely different histories.

4 changed files with 1 additions and 5 deletions

Binary file not shown.

View file

@ -116,10 +116,6 @@ void apply_scene(uint8_t new_scene, uint8_t light)
void process_lightdata(uint8_t light, float tt) void process_lightdata(uint8_t light, float tt)
{ {
if (tt <= 0)
{
tt = default_transitiontime;
}
if (light_state[light]) if (light_state[light])
{ {
step_level[light] = (bri[light] - current_bri[light]) / tt; step_level[light] = (bri[light] - current_bri[light]) / tt;

View file

@ -187,7 +187,7 @@ void tc_update_main()
bri[i] = 0; bri[i] = 0;
current_bri[i] = 0; current_bri[i] = 0;
current_pwm[i] = 0; current_pwm[i] = 0;
transitiontime[i] = default_transitiontime; transitiontime[i] = 0;
process_lightdata(i, transitiontime[i]); process_lightdata(i, transitiontime[i]);
} }