Skip to content

Commit e26c9ce

Browse files
Jonathan Pallant (42 Technology)Yatekii
authored andcommitted
Make Button::is_active() public.
1 parent dbab75b commit e26c9ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boards/nRF9160-DK/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ impl Button {
637637
Button(pin.into_pullup_input())
638638
}
639639

640-
fn is_active(&self) -> bool {
640+
pub fn is_active(&self) -> bool {
641641
self.0.is_low()
642642
}
643643
}

0 commit comments

Comments
 (0)