mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 15:03:53 +01:00
Merge pull request #2929 from bapclenet/samr21/rtc_isr
samd21/rtc_safety_isr
This commit is contained in:
commit
bfaa4ea1e3
@ -186,7 +186,7 @@ void isr_rtc(void)
|
||||
{
|
||||
RtcMode2 *rtcMode2 = &(RTC_DEV);
|
||||
uint16_t status = rtcMode2->INTFLAG.reg;
|
||||
if (status & RTC_MODE2_INTFLAG_ALARM0) {
|
||||
if ((status & RTC_MODE2_INTFLAG_ALARM0) && (rtc_callback.cb != NULL)) {
|
||||
rtc_callback.cb(rtc_callback.arg);
|
||||
rtcMode2->INTFLAG.reg = RTC_MODE2_INTFLAG_ALARM0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user