diff options
Diffstat (limited to 'Finch.c')
-rw-r--r-- | Finch.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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...
|