Skip to content

Commit 10f36d4

Browse files
committed
fix
1 parent 4d53542 commit 10f36d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gpio/alt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ macro_rules! pin {
128128
$(#[$attr])*
129129
impl From<gpio::$PX<Alternate<$A $(, $Otype)?>>> for $name {
130130
fn from(p: gpio::$PX<Alternate<$A $(, $Otype)?>>) -> Self {
131-
Self::$PX(p.into_mode())
131+
Self::$PX(p)
132132
}
133133
}
134134

0 commit comments

Comments
 (0)