summaryrefslogtreecommitdiff
path: root/Finch.c
diff options
context:
space:
mode:
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...