mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 10:32:47 +08:00
SAM3/4 RTC: Fix a bungled change from a recent commit
This commit is contained in:
@@ -783,9 +783,8 @@ int up_rtc_gettime(FAR struct timespec *tp)
|
||||
rtt_val = getreg32(SAM_RTT_VR);
|
||||
}
|
||||
while (rtc_cal != getreg32(SAM_RTC_CALR) ||
|
||||
rtc_tim != getreg32(SAM_RTC_TIMR));
|
||||
|
||||
(rtt_val != getreg32(SAM_RTT_VR)));
|
||||
rtc_tim != getreg32(SAM_RTC_TIMR) ||
|
||||
rtt_val != getreg32(SAM_RTT_VR));
|
||||
|
||||
t.tm_sec = rtc_bcd2bin((rtc_tim & RTC_TIMR_SEC_MASK) >> RTC_TIMR_SEC_SHIFT);
|
||||
t.tm_min = rtc_bcd2bin((rtc_tim & RTC_TIMR_MIN_MASK) >> RTC_TIMR_MIN_SHIFT);
|
||||
|
||||
Reference in New Issue
Block a user