Skip to content

Commit

Permalink
src: lib: Fix leak set direction first time without need sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin authored and patrickelectric committed Mar 14, 2024
1 parent bf5734f commit 7098d0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ impl Navigator {
self.leak
.export()
.expect("Error: Failed to export leak pin");
Delay {}.delay_ms(30_u16);
self.leak
.set_direction(Direction::In)
.expect("Error: Failed to set leak pin as input");
Expand Down

0 comments on commit 7098d0b

Please sign in to comment.