diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c index 79b4268ca..0fc75de6c 100644 --- a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c +++ b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c @@ -334,7 +334,7 @@ void rtc_lld_set_alarm(RTCDriver *rtcp, /* Entering a reentrant critical zone.*/
sts = chSysGetStatusAndLockX();
- if (alarm == 1) {
+ if (alarm == 0) {
if (alarmspec != NULL) {
rtcp->rtc->CR &= ~RTC_CR_ALRAE;
while (!(rtcp->rtc->ISR & RTC_ISR_ALRAWF))
@@ -383,7 +383,7 @@ void rtc_lld_get_alarm(RTCDriver *rtcp, rtcalarm_t alarm,
RTCAlarm *alarmspec) {
- if (alarm == 1)
+ if (alarm == 0)
alarmspec->alrmr = rtcp->rtc->ALRMAR;
#if RTC_ALARMS > 1
else
|