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:
parent
791b3224f9
commit
f4458aebca
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user