diff --git a/src/gpio/erased.rs b/src/gpio/erased.rs index a59dfe5..62ffa67 100644 --- a/src/gpio/erased.rs +++ b/src/gpio/erased.rs @@ -51,7 +51,7 @@ impl PinExt for ErasedPin { impl ErasedPin { pub(crate) fn new(port: u8, pin: u8) -> Self { Self { - pin_port: port << 4 | pin, + pin_port: (port << 4) | pin, _mode: PhantomData, } }