mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-26 03:06:32 +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
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ macro_rules! gpio {
|
||||||
|
|
||||||
fn is_set_high(&self) -> Result<bool, Self::Error> {
|
fn is_set_high(&self) -> Result<bool, Self::Error> {
|
||||||
unsafe {
|
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…
Add table
Reference in a new issue