diff --git a/embassy-stm32/src/spi/v2.rs b/embassy-stm32/src/spi/v2.rs index cb871a9a0..9b8a74d7b 100644 --- a/embassy-stm32/src/spi/v2.rs +++ b/embassy-stm32/src/spi/v2.rs @@ -70,9 +70,9 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> { unsafe { sck.as_ref() .map(|x| Self::configure_pin(x.block(), x.pin() as _, sck_af)); - sck.as_ref() + mosi.as_ref() .map(|x| Self::configure_pin(x.block(), x.pin() as _, mosi_af)); - sck.as_ref() + miso.as_ref() .map(|x| Self::configure_pin(x.block(), x.pin() as _, miso_af)); }