X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=src%2Fftdi.c;h=95028e52e64e0de7318a367638521ca990a45677;hb=f37a15246fb738210ecc188d168039037adc50bf;hp=5a3d44e34bad8ccbc1219a5fc1b3f07238e1a328;hpb=c1cf60a76010148ecba05f5a55ee19d5b71891c7;p=libftdi diff --git a/src/ftdi.c b/src/ftdi.c index 5a3d44e..95028e5 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2409,9 +2409,9 @@ void set_ft232h_cbus(struct ftdi_eeprom *eeprom, unsigned char * output) if (eeprom->cbus_function[2*i+1]> CBUSH_CLK7_5) mode_high = CBUSH_TRISTATE; else - mode_high = eeprom->cbus_function[2*i]; + mode_high = eeprom->cbus_function[2*i+1]; - output[0x18+i] = mode_high <<4 | mode_low; + output[0x18+i] = (mode_high <<4) | mode_low; } } /* Return the bits for the encoded EEPROM Structure of a requested Mode