diff --git a/src/bin/hyper_headset_cli.rs b/src/bin/hyper_headset_cli.rs index 033b9fb..b847ade 100644 --- a/src/bin/hyper_headset_cli.rs +++ b/src/bin/hyper_headset_cli.rs @@ -174,6 +174,14 @@ fn main() { std::thread::sleep(Duration::from_secs_f64(0.5)); + // setting an option may cause a response form the headset + if device.allow_passive_refresh() { + if let Err(error) = device.passive_refresh_state() { + eprintln!("{error}"); + std::process::exit(1); + }; + } + if let Err(error) = device.active_refresh_state() { eprintln!("{error}"); std::process::exit(1);