|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|