Skip to content

Commit f5506d9

Browse files
committed
overseen one comparison
-1 replaced with enum value
1 parent a45847c commit f5506d9

File tree

1 file changed

+1
-1
lines changed
  • src/rp2_common/hardware_rtc

1 file changed

+1
-1
lines changed

src/rp2_common/hardware_rtc/rtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static void rtc_irq_handler(void) {
137137

138138
if (_alarm_repeats) {
139139
// If it is a repeatable alarm, re enable the alarm.
140-
if(_alarm_repeats == -1) {
140+
if(_alarm_repeats == CONTINUOUS_REPEAT_ON_SEC) {
141141
datetime_t t;
142142
rtc_get_datetime(&t);
143143
rtc_hw->irq_setup_1 = RTC_IRQ_SETUP_1_SEC_ENA_BITS | ((((uint)t.sec + 1) % 60) << RTC_IRQ_SETUP_1_SEC_LSB);

0 commit comments

Comments
 (0)