diff options
| author | Dion Dokter <[email protected]> | 2024-07-09 09:53:01 +0200 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2024-07-09 09:53:01 +0200 |
| commit | 6db0daf79b5d3316b101f057702b62312c5d2986 (patch) | |
| tree | 694b789eba223b2b96990ee6ef9b1942741ea0d4 /embassy-stm32/src/rtc | |
| parent | f6f312270f9b2c42b0112545ac356cd6f595505b (diff) | |
Fix errors
Diffstat (limited to 'embassy-stm32/src/rtc')
| -rw-r--r-- | embassy-stm32/src/rtc/low_power.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rtc/low_power.rs b/embassy-stm32/src/rtc/low_power.rs index a4ff1acbc..b9aaa63b9 100644 --- a/embassy-stm32/src/rtc/low_power.rs +++ b/embassy-stm32/src/rtc/low_power.rs | |||
| @@ -132,7 +132,7 @@ impl Rtc { | |||
| 132 | 132 | ||
| 133 | // Panic if the rcc mod knows we're not using low-power rtc | 133 | // Panic if the rcc mod knows we're not using low-power rtc |
| 134 | #[cfg(any(rcc_wb, rcc_f4, rcc_f410))] | 134 | #[cfg(any(rcc_wb, rcc_f4, rcc_f410))] |
| 135 | unsafe { crate::rcc::get_freqs() }.rtc.unwrap(); | 135 | unsafe { crate::rcc::get_freqs() }.rtc.to_hertz().unwrap(); |
| 136 | 136 | ||
| 137 | let requested_duration = requested_duration.as_ticks().clamp(0, u32::MAX as u64); | 137 | let requested_duration = requested_duration.as_ticks().clamp(0, u32::MAX as u64); |
| 138 | let rtc_hz = Self::frequency().0 as u64; | 138 | let rtc_hz = Self::frequency().0 as u64; |
