diff --git a/src/main.rs b/src/main.rs index ab0077a..2528464 100644 --- a/src/main.rs +++ b/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