summaryrefslogtreecommitdiff
path: root/components/drivers/hwtimer
diff options
context:
space:
mode:
Diffstat (limited to 'components/drivers/hwtimer')
-rw-r--r--components/drivers/hwtimer/hwtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/hwtimer/hwtimer.c b/components/drivers/hwtimer/hwtimer.c
index aafa465b1e..cd85b3baef 100644
--- a/components/drivers/hwtimer/hwtimer.c
+++ b/components/drivers/hwtimer/hwtimer.c
@@ -37,7 +37,7 @@ rt_inline rt_uint32_t timeout_calc(rt_hwtimer_t *timer, rt_hwtimerval_t *tv)
{
timeout = tv_sec/i;
- if (timeout <= overflow && timeout * timer->freq <= timer->info->maxcnt)
+ if (timeout <= overflow)
{
counter = timeout*timer->freq;
devi = tv_sec - (counter/(float)timer->freq)*i;