From 037fc665b2ce57a43a070258ac529b0ee59ed811 Mon Sep 17 00:00:00 2001 From: Jennifer Wilcox Date: Sun, 25 Apr 2021 10:15:32 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: tdittr --- rp2040-hal/src/gpio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rp2040-hal/src/gpio.rs b/rp2040-hal/src/gpio.rs index 57207d0..22c7eb6 100644 --- a/rp2040-hal/src/gpio.rs +++ b/rp2040-hal/src/gpio.rs @@ -205,7 +205,7 @@ macro_rules! gpio { fn is_set_high(&self) -> Result { unsafe { - Ok((*pac::SIO::ptr()).gpio_out_set.read().bits() & (1 << $i) != 0) + Ok((*pac::SIO::ptr()).gpio_out.read().bits() & (1 << $i) != 0) } } }