Split RNDIS gadget into individual script

This commit is contained in:
Marc Riera 2023-05-16 00:12:57 +02:00
parent a98a1c07d6
commit f03c7849df
5 changed files with 29 additions and 23 deletions

View file

@ -11,7 +11,7 @@ fn main() -> Result<()> {
match controller::physical::init() {
Ok(dev) => {
// Wait 3 seconds and get current state of the controller
println!("Press a button to select the controller model...");
println!("ddgo-pnp-controller: Press a button to select the controller model...");
sleep(Duration::from_secs(3));
let mut controller_state = Default::default();
controller::physical::get_state(&mut controller_state, &dev);
@ -44,7 +44,7 @@ fn main() -> Result<()> {
}
return Result::Ok(());
},
Err(_e) => println!("ERROR: Could not read input devices! Exiting."),
Err(_e) => println!("ddgo-pnp-controller: ERROR: Could not read input devices! Exiting."),
}
Ok(())
}