Fix cli app missing state updates when writing to headset
This commit is contained in:
@@ -174,6 +174,14 @@ fn main() {
|
|||||||
|
|
||||||
std::thread::sleep(Duration::from_secs_f64(0.5));
|
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() {
|
if let Err(error) = device.active_refresh_state() {
|
||||||
eprintln!("{error}");
|
eprintln!("{error}");
|
||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user