From 1b3c34b923c2dcc42cc76b53d53cdb490cb249b9 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 24 Feb 2022 00:35:17 +0100 Subject: [PATCH] stm32/gpio: fix wrong conf for AF input. --- embassy-stm32/src/gpio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs index 41658860a..3e12ea5cb 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs @@ -410,7 +410,7 @@ pub(crate) mod sealed { AFType::Input => { r.cr(crlh).modify(|w| { w.set_mode(n % 8, vals::Mode::INPUT); - w.set_cnf(n % 8, vals::Cnf::PUSHPULL); + w.set_cnf(n % 8, vals::Cnf::OPENDRAIN); }); } AFType::OutputPushPull => {