From fa3e1ab68a11deb4b9ddad069bbf1e94d4375a0b Mon Sep 17 00:00:00 2001 From: "amugniere@gmail.com" Date: Sat, 9 Jul 2022 14:06:47 +0200 Subject: [PATCH] correction of the access to flex pin attribute in gpio_v2 --- embassy-stm32/src/gpio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs index 4f1ce3cf..c3ae96f3 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs @@ -90,7 +90,7 @@ impl<'d, T: Pin> Flex<'d, T> { { r.pupdr().modify(|w| w.set_pupdr(n, vals::Pupdr::FLOATING)); r.otyper().modify(|w| w.set_ot(n, vals::Ot::PUSHPULL)); - pin.set_speed(speed); + self.pin.set_speed(speed); r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT)); } }); @@ -125,7 +125,7 @@ impl<'d, T: Pin> Flex<'d, T> { { r.pupdr().modify(|w| w.set_pupdr(n, pull.into())); r.otyper().modify(|w| w.set_ot(n, vals::Ot::OPENDRAIN)); - pin.set_speed(speed); + self.pin.set_speed(speed); r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT)); } });