diff options
| author | Joël Schulz-Andres <[email protected]> | 2024-05-24 13:53:19 +0200 |
|---|---|---|
| committer | Joël Schulz-Andres <[email protected]> | 2024-05-24 13:53:19 +0200 |
| commit | 32a75cb7641faa8231d04a3ac53e9acac6a95d8f (patch) | |
| tree | a3872e9235d5c3ae7299c0d97a7174f38530b0d5 | |
| parent | bfc5929f50c766a88c3c5120aa3210d3f1f21f5c (diff) | |
Fix naming
| -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()) |
