This commit is contained in:
Leon Wilzer 2022-11-23 17:00:48 +01:00
parent c9462ecb16
commit 2db70bae65

View File

@ -57,6 +57,7 @@ int PrgTic
int ta_count // number of transfer areas in array (equal to TA_COUNT)
)
{
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)
@ -100,8 +101,6 @@ void simple_rgb_test
TA * p_ta_array // pointer to the array of transfer areas
)
{
TA * p_ta = &p_ta_array[TA_LOCAL];
if(cur_time-prev_time>=wait)
{
prev_time = cur_time;