Skip to content

Commit

Permalink
Added alternative device ID (#2)
Browse files Browse the repository at this point in the history
Fixed issue where some Yetis had an invalid device ID
  • Loading branch information
EttOrm authored Oct 9, 2023
1 parent 824c988 commit aedc330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use anyhow::Result;

pub fn get_yeti(api: &hidapi::HidApi) -> Result<hidapi::HidDevice> {
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);
Expand Down

0 comments on commit aedc330

Please sign in to comment.