mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-18 18:39:11 +08:00
修复单次触发alarm,重复使用不启动定时器的bug
This commit is contained in:
parent
0391b81bb5
commit
6deab5e93d
@ -281,7 +281,11 @@ static void alarm_update(rt_uint32_t event)
|
||||
else
|
||||
{
|
||||
if (_container.current != RT_NULL)
|
||||
{
|
||||
alarm_set(_container.current);
|
||||
if (!(_container.current->flag & RT_ALARM_STATE_START))
|
||||
_container.current = RT_NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
rt_mutex_release(&_container.mutex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user