Fix cli app missing state updates when writing to headset

This commit is contained in:
Lennard Kittner
2026-02-19 13:22:38 +01:00
parent 1853dd2bea
commit 04af1516be

View File

@@ -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);