Skip to content

Commit f97712b

Browse files
authored
Alarm is accessible when the corresponding bit is set (#284)
1 parent 1cd32be commit f97712b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rtc/rtc2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ pub fn clear_timestamp_flag(rtc: &RTC) {
6565
}
6666

6767
pub fn is_alarm_a_accessible(rtc: &RTC) -> bool {
68-
rtc.isr.read().alrawf().bit_is_clear()
68+
rtc.isr.read().alrawf().bit_is_set()
6969
}
7070

7171
pub fn is_alarm_b_accessible(rtc: &RTC) -> bool {
72-
rtc.isr.read().alrbwf().bit_is_clear()
72+
rtc.isr.read().alrbwf().bit_is_set()
7373
}
7474

7575
// AN7459

0 commit comments

Comments
 (0)