rtc: clear interrupt flags if a callback function can't

This commit is contained in:
Joey Castillo 2025-06-14 19:36:19 -04:00
parent 3b18ccb1f4
commit e289f52960

View File

@ -119,5 +119,7 @@ void irq_handler_rtc(void);
void irq_handler_rtc(void) {
if (_rtc_callback != NULL) {
_rtc_callback(RTC->MODE2.INTFLAG.reg);
} else {
RTC->MODE2.INTFLAG.reg = RTC_MODE2_INTFLAG_MASK;
}
}