[Components][Drivers][hwtimer]fix 'index' declared without an initial value
This commit is contained in:
parent
1abe83531c
commit
9a666099aa
|
@ -30,7 +30,7 @@ rt_inline rt_uint32_t timeout_calc(rt_hwtimer_t *timer, rt_hwtimerval_t *tv)
|
||||||
float overflow;
|
float overflow;
|
||||||
float timeout;
|
float timeout;
|
||||||
rt_uint32_t counter;
|
rt_uint32_t counter;
|
||||||
int i, index;
|
int i, index = 0;
|
||||||
float tv_sec;
|
float tv_sec;
|
||||||
float devi_min = 1;
|
float devi_min = 1;
|
||||||
float devi;
|
float devi;
|
||||||
|
|
Loading…
Reference in New Issue