mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 13:03:42 +08:00
[kernel][timer] fixed bug (#6004)
This commit is contained in:
parent
1e27372e3e
commit
18116a3879
@ -605,6 +605,8 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg)
|
|||||||
/*timer is stop*/
|
/*timer is stop*/
|
||||||
*(rt_uint32_t *)arg = RT_TIMER_FLAG_DEACTIVATED;
|
*(rt_uint32_t *)arg = RT_TIMER_FLAG_DEACTIVATED;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case RT_TIMER_CTRL_GET_REMAIN_TIME:
|
case RT_TIMER_CTRL_GET_REMAIN_TIME:
|
||||||
*(rt_tick_t *)arg = timer->timeout_tick;
|
*(rt_tick_t *)arg = timer->timeout_tick;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user