4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 16:53:30 +08:00

Merge pull request #1822 from uestczyh222/hwtimer

[Components][Drivers][hwtimer]fix 'index' declared without an initial…
This commit is contained in:
Bernard Xiong 2018-09-18 18:38:44 +08:00 committed by GitHub
commit 6de7be2693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ rt_inline rt_uint32_t timeout_calc(rt_hwtimer_t *timer, rt_hwtimerval_t *tv)
float overflow;
float timeout;
rt_uint32_t counter;
int i, index;
int i, index = 0;
float tv_sec;
float devi_min = 1;
float devi;