aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-09-23 17:41:19 +0000
committerGitHub <[email protected]>2024-09-23 17:41:19 +0000
commit0ede8479dc4c6a58cfab0a5d4df41c0592405971 (patch)
treedecf00b639a80f3218748ebcae1cb74bd2cd3968
parent2935290a6222536d6341103f91bfd732165d3862 (diff)
parent0b8c4587c2726e4dd9186debb515034d687a22d3 (diff)
Merge pull request #3367 from CBJamo/rp2350_debug_pin_fix
Fix rp2350b pins >31 on debug builds
-rw-r--r--embassy-rp/src/gpio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs
index 520043b07..cb54375e4 100644
--- a/embassy-rp/src/gpio.rs
+++ b/embassy-rp/src/gpio.rs
@@ -603,7 +603,7 @@ impl<'d> Flex<'d> {
603 603
604 #[inline] 604 #[inline]
605 fn bit(&self) -> u32 { 605 fn bit(&self) -> u32 {
606 1 << self.pin.pin() 606 1 << (self.pin.pin() % 32)
607 } 607 }
608 608
609 /// Set the pin's pull. 609 /// Set the pin's pull.