Fixed typo in calculation

This commit is contained in:
Kai Lauterbach 2023-05-12 07:04:25 +02:00
parent 9d02e054f5
commit 2714e05173

View file

@ -162,7 +162,7 @@ void lightEngine()
if (current_bri[i] != 0)
{
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)
{
current_bri[i] = 0;