Skip to content

Commit 992722d

Browse files
committed
Initialize State variable
1 parent c571d8d commit 992722d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/TARGET_STM/rtc_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ void rtc_init(void)
6464
HAL_PWR_EnableBkUpAccess();
6565

6666
RtcHandle.Instance = RTC;
67+
RtcHandle.State = HAL_RTC_STATE_RESET;
6768

6869
#if !RTC_LSI
6970
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE;

0 commit comments

Comments
 (0)