This is an automated email from the ASF dual-hosted git repository. pkarashchenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 104dfb983d arch: cxd56xx: Return error for RTC alarm setting before initialization 104dfb983d is described below commit 104dfb983d0bbdfd0beaf20ae6dabc9c9748e1ae Author: SPRESENSE <41312067+sprese...@users.noreply.github.com> AuthorDate: Thu Sep 14 15:47:07 2023 +0900 arch: cxd56xx: Return error for RTC alarm setting before initialization Return EBUSY error for alarm setting before completion of RTC initialization. --- arch/arm/src/cxd56xx/cxd56_rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/cxd56xx/cxd56_rtc.c b/arch/arm/src/cxd56xx/cxd56_rtc.c index 28ce359327..4f68af643e 100644 --- a/arch/arm/src/cxd56xx/cxd56_rtc.c +++ b/arch/arm/src/cxd56xx/cxd56_rtc.c @@ -553,7 +553,7 @@ int cxd56_rtc_setalarm(struct alm_setalarm_s *alminfo) id = alminfo->as_id; cbinfo = &g_alarmcb[id]; - if (cbinfo->ac_cb == NULL) + if (g_rtc_enabled && (cbinfo->ac_cb == NULL)) { /* The set the alarm */