From 60aa8037fb237d334282430f03095d1a89bcadd9 Mon Sep 17 00:00:00 2001 From: Dennis Date: Tue, 24 Jul 2018 00:16:28 +0200 Subject: [PATCH] Added short description about HidApi In hidapi v0.4.1 it is not yet possible to store the HidDevice in a struct. Although there is already a pull request to implement this, it is not yet merged. --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index f4ba9ed..ae2b105 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,6 +45,8 @@ fn main() { } // Open device + // This is the reason, the device is not part of the struct: https://github.com/Osspial/hidapi-rs/issues/16 + // Maybe this can be fixed, as soon as this is merged into the crate: https://github.com/Osspial/hidapi-rs/pull/12 let vld_dev = [ (0x0c45u16, 0x7403u16), (0x0c45 , 0x7404),