We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a45847c commit f5506d9Copy full SHA for f5506d9
src/rp2_common/hardware_rtc/rtc.c
@@ -137,7 +137,7 @@ static void rtc_irq_handler(void) {
137
138
if (_alarm_repeats) {
139
// If it is a repeatable alarm, re enable the alarm.
140
- if(_alarm_repeats == -1) {
+ if(_alarm_repeats == CONTINUOUS_REPEAT_ON_SEC) {
141
datetime_t t;
142
rtc_get_datetime(&t);
143
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