Fixed typo in calculation
This commit is contained in:
parent
9d02e054f5
commit
2714e05173
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ void lightEngine()
|
||||||
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