mirror of
https://github.com/marcriera/ddgo-pnp-controller.git
synced 2025-04-29 21:37:04 +02:00
Split RNDIS gadget into individual script
This commit is contained in:
parent
a98a1c07d6
commit
f03c7849df
5 changed files with 29 additions and 23 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue