Compare commits
2 commits
2e340d0cc8
...
a9e8e2a778
Author | SHA1 | Date | |
---|---|---|---|
|
a9e8e2a778 | ||
|
7452882ea7 |
4 changed files with 5 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -116,6 +116,10 @@ void apply_scene(uint8_t new_scene, uint8_t light)
|
|||
|
||||
void process_lightdata(uint8_t light, float tt)
|
||||
{
|
||||
if (tt <= 0)
|
||||
{
|
||||
tt = default_transitiontime;
|
||||
}
|
||||
if (light_state[light])
|
||||
{
|
||||
step_level[light] = (bri[light] - current_bri[light]) / tt;
|
||||
|
|
|
@ -187,7 +187,7 @@ void tc_update_main()
|
|||
bri[i] = 0;
|
||||
current_bri[i] = 0;
|
||||
current_pwm[i] = 0;
|
||||
transitiontime[i] = 0;
|
||||
transitiontime[i] = default_transitiontime;
|
||||
process_lightdata(i, transitiontime[i]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue