Skip to content

Commit

Permalink
Support for Model D Wireless
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Bednarczyk committed Apr 25, 2022
1 parent 1b164a5 commit 24bc0a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ fn main() {
// Glorious' vendor id
d.vendor_id() == 0x258A &&

// Model O product id
[0x2011, 0x2022].contains(&d.product_id()) &&
// Model O/D product id
[0x2011, 0x2022, 0x2012, 0x2023].contains(&d.product_id()) &&

// Feature report interface
d.interface_number() == 0x02
Expand All @@ -33,7 +33,7 @@ fn main() {
.none("No matching device found!");

// Product id indicates whether wired
let wired = device_info.product_id() == 0x2011;
let wired = device_info.product_id() == 0x2011 || device_info.product_id() == 0x2012;

// Connect to the device
let device = device_info.open_device(&hid_api).unwrap();
Expand Down

0 comments on commit 24bc0a8

Please sign in to comment.