}
/* ftdi_usb_open
-
- Opens the first device with a given vendor and product ids.
+
+ Opens the first device with a given vendor and product ids.
Return codes:
See ftdi_usb_open_desc()
if(ftdi->type == TYPE_2232C) {
*index = (unsigned short)(encoded_divisor >> 8);
*index &= 0xFF00;
- *index |= ftdi->interface;
+ *index |= ftdi->index;
}
else
*index = (unsigned short)(encoded_divisor >> 16);