From: Uwe Bonnes Date: Fri, 10 Sep 2010 13:25:31 +0000 (+0200) Subject: TYPE_E EEPROM Byte 1 bit 4 is expected to be IN Endpoint size Request user feedback... X-Git-Tag: v1.0rc1~133^2~85 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=87f66e30002a1d48b7f1b835944c0dc4342ff077;p=libftdi TYPE_E EEPROM Byte 1 bit 4 is expected to be IN Endpoint size Request user feedback if unexpected values seen --- diff --git a/src/ftdi.c b/src/ftdi.c index dd2ad33..a80fb49 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2524,6 +2524,11 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, unsigned char *buf, int size, eeprom->suspend_dbus7 = buf[0x01] & SUSPEND_DBUS7; + if((ftdi->type == TYPE_R) && (buf[0x01]&0x40)) + fprintf(stderr, + "TYPE_R EEPROM byte[0x01] Bit 6 unexpected Endpoint size. If this happened with the\n" + " EEPROM programmed by FTDI tools, please report to libftdi@developer.intra2net.com\n"); + // Addr 02: Vendor ID eeprom->vendor_id = buf[0x02] + (buf[0x03] << 8);