mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
Merge pull request #3367 from CBJamo/rp2350_debug_pin_fix
Fix rp2350b pins >31 on debug builds
This commit is contained in:
commit
0ede8479dc
@ -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