From 2a1ab6da0ec6987d02aeb73e89f1199f866db09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Quentin?= Date: Mon, 8 Aug 2022 13:02:40 +0200 Subject: [PATCH] Use the correct AlternateFunction for GPIO (#137) --- esp-hal-common/src/gpio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp-hal-common/src/gpio.rs b/esp-hal-common/src/gpio.rs index 60a8cff04..acf157b80 100644 --- a/esp-hal-common/src/gpio.rs +++ b/esp-hal-common/src/gpio.rs @@ -552,7 +552,7 @@ macro_rules! impl_input { paste! { iomux.$iomux_reg.modify(|_, w| unsafe { w.mcu_sel() - .bits(2) + .bits(AlternateFunction::$gpio_function as u8) .fun_ie() .set_bit() .fun_wpd()