From 5e762e8cf41c82c33632d2b01e0644341483b57c Mon Sep 17 00:00:00 2001 From: Rasmus Melchior Jacobsen Date: Tue, 18 Feb 2025 08:43:48 +0100 Subject: [PATCH] Fix compile error in ospi --- embassy-stm32/src/ospi/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-stm32/src/ospi/mod.rs b/embassy-stm32/src/ospi/mod.rs index e35d51c91..5dff3c4c3 100644 --- a/embassy-stm32/src/ospi/mod.rs +++ b/embassy-stm32/src/ospi/mod.rs @@ -372,7 +372,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> { }); T::REGS.cr().modify(|w| { - w.set_fthres(vals::Threshold(config.fifo_threshold.into())); + w.set_fthres(vals::Threshold::from_bits(config.fifo_threshold.into())); }); // Wait for busy flag to clear @@ -643,7 +643,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> { }); T::REGS.cr().modify(|w| { - w.set_fthres(vals::Threshold(config.fifo_threshold.into())); + w.set_fthres(vals::Threshold::from_bits(config.fifo_threshold.into())); }); // Wait for busy flag to clear