Root access is not necessary anymore for list subcommand

This commit is contained in:
Dennis Potter 2018-11-27 14:07:18 +01:00
parent e477ffc673
commit 841f90fb6e
1 changed files with 2 additions and 1 deletions

View File

@ -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