From 2e46fbf3c94b226ffd07a8c3d0730e138f4f168e Mon Sep 17 00:00:00 2001 From: Brian Schwind Date: Sat, 4 Oct 2025 13:27:37 +0900 Subject: xspi: use a named enum variant in place of a literal zero --- embassy-stm32/src/xspi/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/embassy-stm32/src/xspi/mod.rs b/embassy-stm32/src/xspi/mod.rs index 901569f64..cfc24422a 100644 --- a/embassy-stm32/src/xspi/mod.rs +++ b/embassy-stm32/src/xspi/mod.rs @@ -420,9 +420,9 @@ impl<'d, T: Instance, M: PeriMode> Xspi<'d, T, M> { return Err(XspiError::InvalidCommand); } - T::REGS.cr().modify(|w| { - w.set_fmode(0.into()); - }); + T::REGS + .cr() + .modify(|w| w.set_fmode(Fmode::from_bits(XspiMode::IndirectWrite.into()))); // Configure alternate bytes if let Some(ab) = command.alternate_bytes { -- cgit