From f616b2215912dca6fd76523d390d0602dfa27bcd Mon Sep 17 00:00:00 2001 From: Rasmus Melchior Jacobsen Date: Thu, 25 May 2023 18:16:46 +0200 Subject: [PATCH] Fix yet another v1 error --- embassy-stm32/src/usart/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/usart/mod.rs b/embassy-stm32/src/usart/mod.rs index 4488bd77b..565416c72 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); }); }