diff --git a/Demo_C/Demo/LED/LED.c b/Demo_C/Demo/LED/LED.c index c7f6dd5..861b9f3 100644 --- a/Demo_C/Demo/LED/LED.c +++ b/Demo_C/Demo/LED/LED.c @@ -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;