diff options
| author | Bernard Xiong <[email protected]> | 2018-09-18 18:38:44 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-09-18 18:38:44 +0800 |
| commit | 6de7be2693c479fc9bdf1fecfe5566567744edc8 (patch) | |
| tree | 4c287897cb6ce7c324e732f46537aa5d03b69bce | |
| parent | 1abe83531cd1800d5f16f3066155f51ef1272593 (diff) | |
| parent | 9a666099aa56fb3eda5e6acb79d20a5eb2483f8b (diff) | |
Merge pull request #1822 from uestczyh222/hwtimer
[Components][Drivers][hwtimer]fix 'index' declared without an initial…
| -rw-r--r-- | components/drivers/hwtimer/hwtimer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/hwtimer/hwtimer.c b/components/drivers/hwtimer/hwtimer.c index c3e5076343..3f8a9a42b4 100644 --- a/components/drivers/hwtimer/hwtimer.c +++ b/components/drivers/hwtimer/hwtimer.c @@ -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; |
