From aedc3305997478bb60610f8f27445605c14cd509 Mon Sep 17 00:00:00 2001 From: EttOrm <40430949+EttOrm@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:13:11 +0200 Subject: [PATCH] Added alternative device ID (#2) Fixed issue where some Yetis had an invalid device ID --- src/hid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hid.rs b/src/hid.rs index 8b92086..da9052b 100644 --- a/src/hid.rs +++ b/src/hid.rs @@ -4,7 +4,7 @@ use anyhow::Result; pub fn get_yeti(api: &hidapi::HidApi) -> Result { for device in api.device_list() { - if device.vendor_id() == 0x46d && device.product_id() == 0xaaf { + if device.vendor_id() == 0x46d && (device.product_id() == 0xaaf || device.product_id() == 0xad1) { if device.usage() == 1 { let dev = device.open_device(&api)?; return Ok(dev);