mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 01:17:07 +08:00
[components][drivers] delete redundant judgment
This commit is contained in:
parent
f497b17111
commit
6ea32ee488
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user