From 45e9e51bdc5c3657c44a0951932e5f5a87d5f175 Mon Sep 17 00:00:00 2001 From: Christian Enderle Date: Fri, 15 Sep 2023 15:13:52 +0200 Subject: [PATCH] Fix low-power feature for STM32L0 --- embassy-stm32/src/rtc/v2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/rtc/v2.rs b/embassy-stm32/src/rtc/v2.rs index 1fa9f2fe..726886f1 100644 --- a/embassy-stm32/src/rtc/v2.rs +++ b/embassy-stm32/src/rtc/v2.rs @@ -298,7 +298,7 @@ impl sealed::Instance for crate::peripherals::RTC { crate::pac::PWR.cr().read(); } - #[cfg(any(rtc_v2f0))] + #[cfg(any(rtc_v2f0, rtc_v2l0))] { // enable peripheral clock for communication crate::pac::RCC.apb1enr().modify(|w| w.set_pwren(true));