Skip to content

Commit

Permalink
Use HidApi::new_without_enumerate since refresh_device is called afte…
Browse files Browse the repository at this point in the history
…rwards anyway
  • Loading branch information
Sainan committed Nov 21, 2023
1 parent 9e8e3b1 commit 61101e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wooting-analog-plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ impl WootingPlugin {
Box::new(WootingUwU()),
Box::new(WootingUwURgb()),
];
let mut hid = match HidApi::new() {
let mut hid = match HidApi::new_without_enumerate() {
Ok(mut api) => {
//An attempt at trying to ensure that all the devices have been found in the initialisation of the plugins
if let Err(e) = api.refresh_devices() {
Expand Down

0 comments on commit 61101e5

Please sign in to comment.