4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 15:10:26 +08:00

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

This commit is contained in:
tangyuxin 2020-12-03 09:43:09 +08:00
parent df3d4b7bc9
commit 014105025a

View File

@ -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))
{