stm32/rtc: feature-gate instant

This commit is contained in:
xoviat 2023-08-27 21:26:29 -05:00
parent 538001a4bc
commit 2c80784fe6

View File

@ -178,6 +178,7 @@ impl Rtc {
Ok(())
}
#[cfg(feature = "low-power")]
/// Return the current instant.
fn instant(&self) -> RtcInstant {
let r = RTC::regs();