Skip to content

Commit 442ec38

Browse files
FRASTMfpistm
authored andcommitted
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 <[email protected]>
1 parent f68a311 commit 442ec38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/STM32RTC.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ void STM32RTC::syncAlarmTime(Alarm name)
12761276
RTC_GetAlarm(::ALARM_B, &_alarmBDay, &_alarmBHours, &_alarmBMinutes, &_alarmBSeconds,
12771277
&_alarmBSubSeconds, &p, &match);
12781278
_alarmBPeriod = (p == HOUR_AM) ? AM : PM;
1279-
}
1279+
} else
12801280
#else
12811281
UNUSED(name);
12821282
#endif

0 commit comments

Comments
 (0)