stm32/rtc: feature-gate instant
This commit is contained in:
parent
538001a4bc
commit
2c80784fe6
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue