Root access is not necessary anymore for list subcommand

master
Dennis Potter 4 years ago
parent e477ffc673
commit 841f90fb6e
  1. 3
      src/main.rs

@ -164,7 +164,6 @@ fn main() {
let opt = Opt::from_args();
welcome();
check_sudo();
// All options that don't need the device to be open
// Print all keys and exit application
@ -176,6 +175,8 @@ fn main() {
_ => { /* Do nothing, there are still lots of other options further below */ }
}
check_sudo();
let mut pedals = pedal_operations::Pedals::new();
// Make sure that the application does not purge pedals that are not explicitly set

Loading…
Cancel
Save