[LL][RTC] Fix bad reference to RTC handle in LL_RTC_TIME_Init() & LL_RTC_DATE_Init() functions
diff --git a/Src/stm32l5xx_ll_rtc.c b/Src/stm32l5xx_ll_rtc.c
index f6d9284..e78cb13 100644
--- a/Src/stm32l5xx_ll_rtc.c
+++ b/Src/stm32l5xx_ll_rtc.c
@@ -330,7 +330,7 @@
}
/* Exit Initialization mode */
- LL_RTC_DisableInitMode(RTC);
+ LL_RTC_DisableInitMode(RTCx);
/* If RTC_CR_BYPSHAD bit = 0, wait for synchro else this check is not needed */
if (LL_RTC_IsShadowRegBypassEnabled(RTCx) == 0U)
@@ -418,7 +418,7 @@
}
/* Exit Initialization mode */
- LL_RTC_DisableInitMode(RTC);
+ LL_RTC_DisableInitMode(RTCx);
/* If RTC_CR_BYPSHAD bit = 0, wait for synchro else this check is not needed */
if (LL_RTC_IsShadowRegBypassEnabled(RTCx) == 0U)