diff options
| author | xoviat <[email protected]> | 2023-08-27 21:26:29 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-08-27 21:26:29 -0500 |
| commit | 2c80784fe6e1a165cabae83baf7c842218a35046 (patch) | |
| tree | 6061119d2e996f2529841c6b33e3955ed3336415 | |
| parent | 538001a4bc4cdf647924d621347c851f13b6a95d (diff) | |
stm32/rtc: feature-gate instant
| -rw-r--r-- | embassy-stm32/src/rtc/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-stm32/src/rtc/mod.rs b/embassy-stm32/src/rtc/mod.rs index ca3758550..796fd7d96 100644 --- a/embassy-stm32/src/rtc/mod.rs +++ b/embassy-stm32/src/rtc/mod.rs | |||
| @@ -178,6 +178,7 @@ impl Rtc { | |||
| 178 | Ok(()) | 178 | Ok(()) |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | #[cfg(feature = "low-power")] | ||
| 181 | /// Return the current instant. | 182 | /// Return the current instant. |
| 182 | fn instant(&self) -> RtcInstant { | 183 | fn instant(&self) -> RtcInstant { |
| 183 | let r = RTC::regs(); | 184 | let r = RTC::regs(); |
