提交 6ea32ee4 编写于 作者: Z zylx

[components][drivers] delete redundant judgment

上级 f497b171
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册