summaryrefslogtreecommitdiff
path: root/src/timer.c
diff options
context:
space:
mode:
authorBernardXiong <[email protected]>2018-03-01 13:36:22 +0800
committerBernardXiong <[email protected]>2018-03-01 13:36:22 +0800
commit38b9ed3118f7df9fd683b9d3bd4425ab604ee2bc (patch)
tree2b7acaf70ec61499d4266d74a8c0551a85260111 /src/timer.c
parentef668bc3aa99992208ba6808fe430e5d00849b2f (diff)
[Kernel] add sigwait implementation
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 c56a453a3c..d6cf486931 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -396,7 +396,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_READY)
+ if ((timer_thread.stat & RT_THREAD_STAT_MASK) != RT_THREAD_READY)
{
/* resume timer thread to check soft timer */
rt_thread_resume(&timer_thread);