Fix rp2350b pins >31 on debug builds

This commit is contained in:
Caleb Jamison 2024-09-23 13:38:43 -04:00
parent 2935290a62
commit 0b8c4587c2

View File

@ -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.