mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 13:01:30 +11:00
Apply suggestions from code review
Co-authored-by: tdittr <tdittr@users.noreply.github.com>
This commit is contained in:
parent
422a45fbc5
commit
037fc665b2
|
@ -205,7 +205,7 @@ macro_rules! gpio {
|
|||
|
||||
fn is_set_high(&self) -> Result<bool, Self::Error> {
|
||||
unsafe {
|
||||
Ok((*pac::SIO::ptr()).gpio_out_set.read().bits() & (1 << $i) != 0)
|
||||
Ok((*pac::SIO::ptr()).gpio_out.read().bits() & (1 << $i) != 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue