Skip to content

Commit e37aeb0

Browse files
committed
Workaround to fix RTC-reset issue on the EFM32GG11_STK3701
1 parent 41975a2 commit e37aeb0

File tree

1 file changed

+3
-3
lines changed
  • targets/TARGET_Silicon_Labs/TARGET_EFM32

1 file changed

+3
-3
lines changed

targets/TARGET_Silicon_Labs/TARGET_EFM32/rtcc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void rtc_init(void)
5555
/* Save time if it has been set */
5656
time_t t = 0;
5757
if (RTCC->RET[1].REG == 0) {
58-
t = rtc_read();
58+
t = rtc_read();
5959
}
6060

6161
RTCC_Reset();
@@ -66,9 +66,9 @@ void rtc_init(void)
6666

6767
/* Update time */
6868
if (RTCC->RET[1].REG == 0) {
69-
rtc_write(t);
69+
rtc_write(t);
7070
} else {
71-
RTCC->RET[0].REG = 0;
71+
RTCC->RET[0].REG = 0;
7272
}
7373
}
7474

0 commit comments

Comments
 (0)