Initialize State variable

pull/5269/head
bcostm 2017-10-10 16:42:08 +02:00
parent c571d8d6f8
commit 992722df2a
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ void rtc_init(void)
HAL_PWR_EnableBkUpAccess();
RtcHandle.Instance = RTC;
RtcHandle.State = HAL_RTC_STATE_RESET;
#if !RTC_LSI
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE;