X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.c;h=440ff54bb49bc1c5af7b74ffe68f197c09201a71;hp=3177be22e82b2a7837d14c725532c85b876cd9ee;hb=cecb9cb2c8bb9d7c71ae4a5c21c45203148afe0e;hpb=d60d79c508f57f711a2375b1c154023d58581563 diff --git a/src/ftdi.c b/src/ftdi.c index 3177be2..440ff54 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2541,8 +2541,6 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, unsigned char *buf, int size, eeprom->use_serial = buf[0x0A]&0x08; eeprom->change_usb_version = buf[0x0A]&0x10; - // Addr 0B: Invert data lines - eeprom->invert = buf[0x0B]; // Addr 0C: USB version low byte when 0x0A bit 4 is set // Addr 0D: USB version high byte when 0x0A bit 4 is set @@ -2638,9 +2636,8 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, unsigned char *buf, int size, } else if(ftdi->type == TYPE_R) { - // Addr 14: CBUS function: CBUS0, CBUS1 - // Addr 15: CBUS function: CBUS2, CBUS3 - // Addr 16: CBUS function: CBUS5 + // Addr 0B: Invert data lines + // Works only on FT232R, not FT245R, but no way to distinguish if (ftdi->type == TYPE_R) { eeprom->cbus_function[0] = buf[0x14] & 0x0f; eeprom->cbus_function[1] = (buf[0x14] >> 4) & 0x0f;