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()