From 04af1516be611da889736ef479e3f292fccceaa6 Mon Sep 17 00:00:00 2001 From: Lennard Kittner Date: Thu, 19 Feb 2026 13:22:38 +0100 Subject: [PATCH] Fix cli app missing state updates when writing to headset --- src/bin/hyper_headset_cli.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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);