This commit is contained in:
Leon Wilzer 2022-11-23 18:40:10 +01:00
parent f0ca3f02b6
commit 5d11173711

View File

@ -59,18 +59,18 @@ int PrgTic
TA * p_ta = &p_ta_array[TA_LOCAL];
// Get the current value of the system time
cur_time = p_ta->hook_table.GetSystemTime(TIMER_UNIT_MILLISECONDS);
if(cur_time-prev_time>=wait)
{
prev_time = cur_time;
simple_rgb_test(p_ta_array);
update_lights(p_ta_array);
}
// if(cur_time-prev_time>=wait)
// {
// prev_time = cur_time;
// spectrum();
// simple_rgb_test(p_ta_array);
// update_lights(p_ta_array);
// }
if(cur_time-prev_time>=wait)
{
prev_time = cur_time;
spectrum();
update_lights(p_ta_array);
}
return RC;
}