From 58cd8e026c76549e4546c693aa1ace853737ad09 Mon Sep 17 00:00:00 2001 From: kk Date: Wed, 15 Nov 2023 19:24:26 +0800 Subject: [PATCH] =?UTF-8?q?[drivers/rtc]=20=E4=BF=AE=E5=A4=8D=20alarm.c=20?= =?UTF-8?q?=E5=B0=91=E5=86=99=E5=88=86=E5=8F=B7=20(#8256)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/rtc/alarm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/drivers/rtc/alarm.c b/components/drivers/rtc/alarm.c index 62cb71ae7c..b78528a04c 100644 --- a/components/drivers/rtc/alarm.c +++ b/components/drivers/rtc/alarm.c @@ -59,7 +59,7 @@ static rt_err_t alarm_set(struct rt_alarm *alarm) wkalarm.tm_hour = alarm->wktime.tm_hour; wkalarm.tm_mday = alarm->wktime.tm_mday; wkalarm.tm_mon = alarm->wktime.tm_mon; - wkalarm.tm_year = alarm->wktime.tm_year + wkalarm.tm_year = alarm->wktime.tm_year; ret = rt_device_control(device, RT_DEVICE_CTRL_RTC_SET_ALARM, &wkalarm); if ((ret == RT_EOK) && wkalarm.enable)