Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 874beea

Browse files
committedJul 8, 2024·
adding R_RTC_ClockSourceSet when setting rtc time FIXME
it may be required to run it also when the device is powered down, but vrtc is not being powered
1 parent 6f35224 commit 874beea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎libraries/RTC/src/RTC.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ bool openRtc() {
551551
}
552552

553553
bool setRtcTime(rtc_time_t time) {
554+
R_RTC_ClockSourceSet(&rtc_ctrl);
555+
554556
if(FSP_SUCCESS == R_RTC_CalendarTimeSet(&rtc_ctrl, &time) ) {
555557
return true;
556558
}

0 commit comments

Comments
 (0)
Please sign in to comment.