tool: Use hidraw backend of hidapi

The default libusb backend just returns the string "hid_error is not
implemented yet" for all errors, while the hidraw backend at least gives
something correct if vague.

I'm not aware of any disadvantage other that not being (properly)
supported with really ancient kernels. It seems to work fine.
This commit is contained in:
Ian Douglas Scott 2021-02-18 13:36:33 -08:00 committed by Jeremy Soller
parent 791b3224f9
commit f4458aebca

View File

@ -17,7 +17,7 @@ required-features = ["std"]
[dependencies]
libc = { version = "0.2", optional = true }
hidapi = { version = "1.2", optional = true }
hidapi = { version = "1.2", default-features = false, features = ["linux-static-hidraw"], optional = true }
redox_hwio = { version = "0.1.3", optional = true }
[features]