rtc alarm:fix doesn't call nxsig_notification
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
This commit is contained in:
parent
8de247543f
commit
234c7d58bf
@ -185,15 +185,15 @@ static void rtc_alarm_callback(FAR void *priv, int alarmid)
|
||||
|
||||
if (alarminfo->active)
|
||||
{
|
||||
/* The alarm is no longer active */
|
||||
|
||||
alarminfo->active = false;
|
||||
|
||||
/* Yes.. signal the alarm expiration */
|
||||
|
||||
nxsig_notification(alarminfo->pid, &alarminfo->event,
|
||||
SI_QUEUE, &alarminfo->work);
|
||||
}
|
||||
|
||||
/* The alarm is no longer active */
|
||||
|
||||
alarminfo->active = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user