We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96fb0d8 commit 2229039Copy full SHA for 2229039
cores/arduino/stm32/rtc.c
@@ -358,7 +358,7 @@ void RTC_init(hourFormat_t format, sourceClock_t source)
358
/*at 0:0:0*/
359
RTC_SetTime(0,0,0,0,AM);
360
361
-#if !defined(STM32F1xx) && !defined(STM32F2xx)
+#if !defined(STM32F1xx) && !defined(STM32F2xx) && !defined(STM32L1xx) || defined(STM32L1_ULPH)
362
/* Enable Direct Read of the calendar registers (not through Shadow) */
363
HAL_RTCEx_EnableBypassShadow(&RtcHandle);
364
#endif /* !STM32F1xx && !STM32F2xx */
0 commit comments