diff options
| author | Bernard Xiong <[email protected]> | 2019-01-13 11:23:08 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2019-01-13 11:23:08 +0800 |
| commit | de624c52c140f9b6e6d782025398b0c0a250d666 (patch) | |
| tree | d64e7e1936215bba5e85ece456dfca31f131ccb0 /src/timer.c | |
| parent | 83b67ec3e29099bce9bdb6fc6a50becc03072d29 (diff) | |
[Kernel] Enable RUNNING status in thread.
Diffstat (limited to 'src/timer.c')
| -rw-r--r-- | src/timer.c | 2 |
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); |
