We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21662fd commit 6ab0fb8Copy full SHA for 6ab0fb8
libraries/RTC/src/RTC.cpp
@@ -553,6 +553,10 @@ bool openRtc() {
553
if(!isRtcRunning()) {
554
R_RTC_ClockSourceSet(&rtc_ctrl);
555
}
556
+ if (R_RTC->RCR4 != (uint8_t) rtc_ctrl.p_cfg->clock_source) {
557
+ R_RTC->RCR4 = (uint8_t) rtc_ctrl.p_cfg->clock_source;
558
+ delay(200);
559
+ }
560
return true;
561
562
else {
0 commit comments