diff options
| author | Bernard Xiong <[email protected]> | 2018-09-21 17:09:46 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-09-21 17:09:46 +0800 |
| commit | b5202d17fbd8e226a737caa38d536a4cd7a55956 (patch) | |
| tree | 4df28e82517bc51eb2208933e54848560def5982 /components/drivers/hwtimer | |
| parent | f7423741f2868cca2a64619a0907668acf02bd5d (diff) | |
| parent | b611f317fe83aa262879a07d77c8102434d3b847 (diff) | |
Merge branch 'master' into dev
Diffstat (limited to 'components/drivers/hwtimer')
| -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; |
