diff options
| -rw-r--r-- | embassy-stm32/src/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/macros.rs b/embassy-stm32/src/macros.rs index 8166dff6a..8ffa50021 100644 --- a/embassy-stm32/src/macros.rs +++ b/embassy-stm32/src/macros.rs | |||
| @@ -108,7 +108,7 @@ macro_rules! new_pin { | |||
| 108 | pin.set_as_af_pull(pin.af_num(), $aftype, $pull); | 108 | pin.set_as_af_pull(pin.af_num(), $aftype, $pull); |
| 109 | // Do not call set_speed on AFType::Input, as MODE and CNF bits are not independent | 109 | // Do not call set_speed on AFType::Input, as MODE and CNF bits are not independent |
| 110 | // for gpio_v1 | 110 | // for gpio_v1 |
| 111 | if $aftype != crate::gpio::low_level::AFType::Input { | 111 | if $aftype != crate::gpio::AFType::Input { |
| 112 | pin.set_speed($speed); | 112 | pin.set_speed($speed); |
| 113 | } | 113 | } |
| 114 | Some(pin.map_into()) | 114 | Some(pin.map_into()) |
