Use new connect_compatible_device function

This commit is contained in:
Lennard Kittner
2025-08-18 20:14:01 +02:00
parent fab983ff73
commit 6eabd6867e

View File

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