Merge pull request #3367 from CBJamo/rp2350_debug_pin_fix

Fix rp2350b pins >31 on debug builds
This commit is contained in:
Dario Nieuwenhuis 2024-09-23 17:41:19 +00:00 committed by GitHub
commit 0ede8479dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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