Skip to content

Commit

Permalink
Merge pull request #138 from TeyKey1/fix-hal-is-low
Browse files Browse the repository at this point in the history
Fix embedded-hal `is_low` impl
  • Loading branch information
golemparts authored Jan 21, 2024
2 parents cc9dc58 + 46796b4 commit 731ec00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpio/hal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl embedded_hal::digital::InputPin for InputPin {
}

fn is_low(&mut self) -> Result<bool, Self::Error> {
Ok((*self).is_high())
Ok((*self).is_low())
}
}

Expand Down

0 comments on commit 731ec00

Please sign in to comment.