diff --git a/embassy-stm32/src/usart/mod.rs b/embassy-stm32/src/usart/mod.rs index 4488bd77..565416c7 100644 --- a/embassy-stm32/src/usart/mod.rs +++ b/embassy-stm32/src/usart/mod.rs @@ -922,8 +922,8 @@ fn configure(r: Regs, config: &Config, pclk_freq: Hertz, kind: Kind, enable_rx: w.set_over8(vals::Over8(over8 as _)); }); + #[cfg(not(usart_v1))] r.cr3().modify(|w| { - #[cfg(not(usart_v1))] w.set_onebit(config.assume_noise_free); }); }