From f4458aebcafefb3a9aea8bd18d6ede29cb192a04 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 18 Feb 2021 13:36:33 -0800 Subject: [PATCH] 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. --- tool/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/Cargo.toml b/tool/Cargo.toml index 745e45b..db742a0 100644 --- a/tool/Cargo.toml +++ b/tool/Cargo.toml @@ -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]