From d2a79a46c51cf55a8eef88cc987484dd0eda8955 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Thu, 21 Oct 2021 11:57:00 +0200 Subject: [PATCH] Configure the correct pin instances --- embassy-stm32/src/spi/v2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }