aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoël Schulz-Andres <[email protected]>2024-05-24 14:15:10 +0200
committerJoël Schulz-Andres <[email protected]>2024-05-24 14:15:10 +0200
commite1d2ba07a79561cf18b30e905a28d0ff0744cb58 (patch)
treea15e001b955b87486475b3419b066be0c1ee4048
parentc4b3488f7ff747da776310ef0f9099329b5a069e (diff)
Formatting
-rw-r--r--embassy-stm32/src/macros.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/embassy-stm32/src/macros.rs b/embassy-stm32/src/macros.rs
index 2d3040b08..dcd25cbe9 100644
--- a/embassy-stm32/src/macros.rs
+++ b/embassy-stm32/src/macros.rs
@@ -109,8 +109,10 @@ macro_rules! new_pin {
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 match $aftype { 111 match $aftype {
112 crate::gpio::AFType::Input => {}, 112 crate::gpio::AFType::Input => {}
113 _ => {pin.set_speed($speed);}, 113 _ => {
114 pin.set_speed($speed);
115 }
114 }; 116 };
115 Some(pin.map_into()) 117 Some(pin.map_into())
116 }}; 118 }};