X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.c;h=bab354417a0f0f911ec213211e0e4a660206314f;hp=9d5be1b160a7985cd2f2149ed37af18b3e8a73c8;hb=49a6bc10a1c75b1595572e67910c53e09752a6f2;hpb=07851949856f2d82e71ce5be0c62f8f51d5cd506 diff --git a/src/ftdi.c b/src/ftdi.c index 9d5be1b..bab3544 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2530,6 +2530,7 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, unsigned char *buf, int size, // Bit 6: 0 - reserved // Bit 5: 0 - reserved // Bit 4: 1 - Change USB version + // Not seen on FT2232(D) // Bit 3: 1 - Use the serial number string // Bit 2: 1 - Enable suspend pull downs for lower power // Bit 1: 1 - Out EndPoint is Isochronous @@ -2544,7 +2545,7 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, unsigned char *buf, int size, // Addr 0C: USB version low byte when 0x0A bit 4 is set // Addr 0D: USB version high byte when 0x0A bit 4 is set - if (eeprom->change_usb_version == 1) + if ((eeprom->change_usb_version == 1) || ftdi->type == TYPE_2232C) { eeprom->usb_version = buf[0x0C] + (buf[0x0D] << 8); }