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