mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +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]
|
#[inline]
|
||||||
fn bit(&self) -> u32 {
|
fn bit(&self) -> u32 {
|
||||||
1 << self.pin.pin()
|
1 << (self.pin.pin() % 32)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set the pin's pull.
|
/// Set the pin's pull.
|
||||||
|
Loading…
Reference in New Issue
Block a user