From 6deab5e93da5e32497f739fb1d2540d1800189e9 Mon Sep 17 00:00:00 2001 From: Eric LGF Date: Fri, 8 Sep 2023 14:01:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=AC=A1=E8=A7=A6?= =?UTF-8?q?=E5=8F=91alarm=EF=BC=8C=E9=87=8D=E5=A4=8D=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=B8=8D=E5=90=AF=E5=8A=A8=E5=AE=9A=E6=97=B6=E5=99=A8=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/rtc/alarm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/drivers/rtc/alarm.c b/components/drivers/rtc/alarm.c index 6852cf0a17..6b89d9d1a3 100644 --- a/components/drivers/rtc/alarm.c +++ b/components/drivers/rtc/alarm.c @@ -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);