mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-09 05:00:00 +08:00
Merge pull request #4112 from enkiller/1203-0940
[timer] Fix the bug that the linked list is still mounted when the si…
This commit is contained in:
@@ -575,7 +575,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))
|
||||
{
|
||||
@@ -663,7 +663,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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user