This commit is contained in:
Leon Wilzer 2022-11-23 18:26:29 +01:00
parent 3612b4b5df
commit e1adace604

View File

@ -39,8 +39,8 @@ void PrgInit
) )
{ {
prev_time = 0; prev_time = 0;
green_state = LIGHT_MIN;
red_state = LIGHT_MIN; red_state = LIGHT_MIN;
green_state = LIGHT_MIN;
blue_state = LIGHT_MIN; blue_state = LIGHT_MIN;
states[0] = &red_state; states[0] = &red_state;
states[1] = &green_state; states[1] = &green_state;
@ -66,8 +66,8 @@ int PrgTic
if(cur_time-prev_time>=wait) if(cur_time-prev_time>=wait)
{ {
prev_time = cur_time; prev_time = cur_time;
update_lights(p_ta_array);
spectrum(); spectrum();
update_lights(p_ta_array);
} }
return RC; return RC;
} }