aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.