This commit is contained in:
Leon Wilzer 2022-11-23 18:28:37 +01:00
parent e1adace604
commit 1439693cf5

View File

@ -6,7 +6,7 @@
#define LIGHT_MAX DUTY_MAX
#define LIGHT_MIN DUTY_MIN
#define LIGHT_OFF 0
#define wait 10
#define wait 1000
#define RC 0x7FFF // return code: 0x7FFF - program should be further called by the firmware;
#define sRC 0
@ -59,16 +59,16 @@ 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)
// {
// simple_rgb_test(p_ta_array);
// }
if(cur_time-prev_time>=wait)
{
prev_time = cur_time;
spectrum();
update_lights(p_ta_array);
simple_rgb_test(p_ta_array);
}
// if(cur_time-prev_time>=wait)
// {
// prev_time = cur_time;
// spectrum();
// update_lights(p_ta_array);
// }
return RC;
}