Apply suggestions from code review

Co-authored-by: tdittr <tdittr@users.noreply.github.com>
This commit is contained in:
Jennifer Wilcox 2021-04-25 10:15:32 -05:00 committed by GitHub
parent 422a45fbc5
commit 037fc665b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}
}
}