nrf/gpio: Make Input is_high/is_low public.

This commit is contained in:
Dario Nieuwenhuis
2022-03-17 23:20:09 +01:00
parent 5f39f13616
commit 6d994351a6
2 changed files with 6 additions and 6 deletions

View File

@ -47,11 +47,11 @@ impl<'d, T: Pin> Input<'d, T> {
Self { pin }
}
fn is_high(&self) -> bool {
pub fn is_high(&self) -> bool {
self.pin.is_high()
}
fn is_low(&self) -> bool {
pub fn is_low(&self) -> bool {
self.pin.is_low()
}
}