From 6eabd6867ed010391db9290ef910d1a28b1a7120 Mon Sep 17 00:00:00 2001 From: Lennard Kittner Date: Mon, 18 Aug 2025 20:14:01 +0200 Subject: [PATCH] Use new connect_compatible_device function --- src/bin/hyper_headset_cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/hyper_headset_cli.rs b/src/bin/hyper_headset_cli.rs index b6be5ae..223df40 100644 --- a/src/bin/hyper_headset_cli.rs +++ b/src/bin/hyper_headset_cli.rs @@ -1,7 +1,7 @@ use std::time::Duration; use clap::{Arg, Command}; -use hyper_headset::devices::{cloud_ii_wireless_dts::CloudIIWirelessDTS, Device}; +use hyper_headset::devices::connect_compatible_device; fn main() { let matches = Command::new(env!("CARGO_PKG_NAME")) @@ -47,7 +47,7 @@ fn main() { ) .get_matches(); - let mut device = match CloudIIWirelessDTS::new() { + let mut device = match connect_compatible_device() { Ok(device) => device, Err(error) => { eprintln!("{error}");