Add body to match statement
This commit is contained in:
parent
fab434ae84
commit
c4b3488f7f
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ macro_rules! new_pin {
|
||||||
// for gpio_v1
|
// for gpio_v1
|
||||||
match $aftype {
|
match $aftype {
|
||||||
crate::gpio::AFType::Input => {},
|
crate::gpio::AFType::Input => {},
|
||||||
_ => pin.set_speed($speed);
|
_ => {pin.set_speed($speed);},
|
||||||
};
|
};
|
||||||
Some(pin.map_into())
|
Some(pin.map_into())
|
||||||
}};
|
}};
|
||||||
|
|
Loading…
Add table
Reference in a new issue