Fixed RTC periodic callback issue
alarminfo->active = false will kill the signal which will disable the interrupt. In effect, periodic interrupt will behave like alarm interrupt. So, removed alarminfo->active = false from rtc_periodic_callback() function Update rtc.c
This commit is contained in:
parent
712e4b5915
commit
655fcf18d0
@ -234,10 +234,6 @@ static void rtc_periodic_callback(FAR void *priv, int alarmid)
|
|||||||
nxsig_notification(alarminfo->pid, &alarminfo->event,
|
nxsig_notification(alarminfo->pid, &alarminfo->event,
|
||||||
SI_QUEUE, &alarminfo->work);
|
SI_QUEUE, &alarminfo->work);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The alarm is no longer active */
|
|
||||||
|
|
||||||
alarminfo->active = false;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user