From eaf3c60166beec266e7094f5101556db3c0a64df Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 19 Jun 2023 15:04:52 +0200 Subject: [PATCH] STM32RTC: syncAlarmTime Get the Alarm given by the parameter In case the Alarm name is ALARM_B, this change will avoid getting the Alarm_A Signed-off-by: Francois Ramu --- src/STM32RTC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/STM32RTC.cpp b/src/STM32RTC.cpp index 10d8379..0c8bf9d 100644 --- a/src/STM32RTC.cpp +++ b/src/STM32RTC.cpp @@ -1276,7 +1276,7 @@ void STM32RTC::syncAlarmTime(Alarm name) RTC_GetAlarm(::ALARM_B, &_alarmBDay, &_alarmBHours, &_alarmBMinutes, &_alarmBSeconds, &_alarmBSubSeconds, &p, &match); _alarmBPeriod = (p == HOUR_AM) ? AM : PM; - } + } else #else UNUSED(name); #endif