소스 검색

[components][drivers] delete redundant judgment

zylx 6 년 전
부모
커밋
6ea32ee488
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/drivers/hwtimer/hwtimer.c

+ 1 - 1
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;