Skip to content

Commit

Permalink
fix(gpio): wrong ioc pad (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf authored Jun 29, 2024
1 parent a8c6bdd commit 2ecbd75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ pub(crate) trait SealedPin: Sized {
/// IOC peripheral
#[inline]
fn ioc_pad(&self) -> pac::ioc::Pad {
pac::IOC.pad(self._port())
pac::IOC.pad(self.pin_pad() as usize)
}

// helper method used across the HAL, not intended to be used by user code
Expand Down

0 comments on commit 2ecbd75

Please sign in to comment.