summaryrefslogtreecommitdiff
path: root/Finch.c
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2015-11-18 08:54:03 -0500
committerknolax <1339802534.kk@gmail.com>2015-11-18 08:54:03 -0500
commit5e7fdbdd1c0d0b04f7e8f2219b5ee33ba3aa276f (patch)
tree69dd4dede14aef0fa411e497691a1f82fcc32722 /Finch.c
parente076ef80732463e020ffd9cd93670b21094533c7 (diff)
testing
Diffstat (limited to 'Finch.c')
-rw-r--r--Finch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Finch.c b/Finch.c
index 4cd1200..86468c0 100644
--- a/Finch.c
+++ b/Finch.c
@@ -145,10 +145,11 @@ int Fin_Init(void)
// with a VID of 2354 (Hex) and a PID of 1111 (Hex)
//takes the result of enumerate and gets device objects for them
while (temphidptr != NULL) {
- finch_handle[finchnum] = hid_open(0x2354, 0x1111, (*temphidptr).serial_number);
+ finch_handle[finchnum] = hid_open_path( (*temphidptr).path);
temphidptr = (*temphidptr).next;
finchnum = finchnum + 1;
}
+
if (finch_handle == 0)
{
// failure...