stm32/rtc: feature-gate instant
This commit is contained in:
parent
538001a4bc
commit
2c80784fe6
@ -178,6 +178,7 @@ impl Rtc {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(feature = "low-power")]
|
||||
/// Return the current instant.
|
||||
fn instant(&self) -> RtcInstant {
|
||||
let r = RTC::regs();
|
||||
|
Loading…
Reference in New Issue
Block a user