From 2db70bae6509fdddd6c0d1688fef320c98de70c4 Mon Sep 17 00:00:00 2001 From: Leon Wilzer Date: Wed, 23 Nov 2022 17:00:48 +0100 Subject: [PATCH] spectrum --- Demo_C/Demo/LED/LED.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;