提交 01410502 编写于 作者: 还_没_想_好's avatar 还_没_想_好

[timer] Fix the bug that the linked list is still mounted when the single timer is not modified

上级 df3d4b7b
......@@ -579,7 +579,7 @@ void rt_timer_check(void)
{
continue;
}
rt_list_remove(&(t->row[RT_TIMER_SKIP_LIST_LEVEL - 1]));
if ((t->parent.flag & RT_TIMER_FLAG_PERIODIC) &&
(t->parent.flag & RT_TIMER_FLAG_ACTIVATED))
{
......@@ -667,7 +667,7 @@ void rt_soft_timer_check(void)
{
continue;
}
rt_list_remove(&(t->row[RT_TIMER_SKIP_LIST_LEVEL - 1]));
if ((t->parent.flag & RT_TIMER_FLAG_PERIODIC) &&
(t->parent.flag & RT_TIMER_FLAG_ACTIVATED))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册