From ab60cfd64b243d09ea3856da26d809e1b37cb052 Mon Sep 17 00:00:00 2001 From: Joshua Salzedo Date: Mon, 27 Sep 2021 15:48:56 -0700 Subject: [PATCH] Patch additional regressions --- 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 81d427a7..a67d4e73 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs @@ -130,9 +130,9 @@ impl<'d, T: Pin> Output<'d, T> { let r = pin.block(); let n = pin.pin() as usize; r.pupdr().modify(|w| w.set_pupdr(n, vals::Pupdr::FLOATING)); - r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT)); r.otyper().modify(|w| w.set_ot(n, vals::Ot::PUSHPULL)); pin.set_speed(speed); + r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT)); }); Self { @@ -208,9 +208,9 @@ impl<'d, T: Pin> OutputOpenDrain<'d, T> { let r = pin.block(); let n = pin.pin() as usize; r.pupdr().modify(|w| w.set_pupdr(n, pull.into())); - r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT)); r.otyper().modify(|w| w.set_ot(n, vals::Ot::OPENDRAIN)); pin.set_speed(speed); + r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT)); }); Self {