summaryrefslogtreecommitdiff
path: root/src/timer.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-01-13 11:23:08 +0800
committerBernard Xiong <[email protected]>2019-01-13 11:23:08 +0800
commitde624c52c140f9b6e6d782025398b0c0a250d666 (patch)
treed64e7e1936215bba5e85ece456dfca31f131ccb0 /src/timer.c
parent83b67ec3e29099bce9bdb6fc6a50becc03072d29 (diff)
[Kernel] Enable RUNNING status in thread.
Diffstat (limited to 'src/timer.c')
-rw-r--r--src/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timer.c b/src/timer.c
index fd938065db..3992cf6ff4 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -399,7 +399,7 @@ rt_err_t rt_timer_start(rt_timer_t timer)
if (timer->parent.flag & RT_TIMER_FLAG_SOFT_TIMER)
{
/* check whether timer thread is ready */
- if ((timer_thread.stat & RT_THREAD_STAT_MASK) != RT_THREAD_READY)
+ if ((timer_thread.stat & RT_THREAD_STAT_MASK) == RT_THREAD_SUSPEND)
{
/* resume timer thread to check soft timer */
rt_thread_resume(&timer_thread);