mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-24 15:52:34 +00:00
Fix rp2350b pins >31 on debug builds
This commit is contained in:
parent
2935290a62
commit
0b8c4587c2
@ -603,7 +603,7 @@ impl<'d> Flex<'d> {
|
||||
|
||||
#[inline]
|
||||
fn bit(&self) -> u32 {
|
||||
1 << self.pin.pin()
|
||||
1 << (self.pin.pin() % 32)
|
||||
}
|
||||
|
||||
/// Set the pin's pull.
|
||||
|
Loading…
Reference in New Issue
Block a user