diff --git a/embassy-stm32/src/timer/mod.rs b/embassy-stm32/src/timer/mod.rs index 953c8343..c62f4a15 100644 --- a/embassy-stm32/src/timer/mod.rs +++ b/embassy-stm32/src/timer/mod.rs @@ -217,7 +217,7 @@ pub(crate) mod sealed { } fn get_max_compare_value(&self) -> u32 { - Self::regs_gp32().arr().read().arr() as u32 + Self::regs_gp32().arr().read().arr() } } }