From 18116a387923b6f7ccf9f1b89acc0d7688dd6de6 Mon Sep 17 00:00:00 2001 From: HubretXie Date: Sat, 28 May 2022 08:32:11 +0800 Subject: [PATCH] [kernel][timer] fixed bug (#6004) --- src/timer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/timer.c b/src/timer.c index 0034a53c71..82caec8ecb 100644 --- a/src/timer.c +++ b/src/timer.c @@ -605,6 +605,8 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg) /*timer is stop*/ *(rt_uint32_t *)arg = RT_TIMER_FLAG_DEACTIVATED; } + break; + case RT_TIMER_CTRL_GET_REMAIN_TIME: *(rt_tick_t *)arg = timer->timeout_tick; break; -- GitLab