From: Uwe Bonnes Date: Wed, 15 Sep 2010 11:20:31 +0000 (+0200) Subject: Fix decoding of FT(2|4)232H channel A type X-Git-Tag: v1.0rc1~133^2~58 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=c6b94478680a22e4659431773f67e361fb6c527c;p=libftdi Fix decoding of FT(2|4)232H channel A type --- diff --git a/src/ftdi.c b/src/ftdi.c index b9e3a00..aa85278 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2844,7 +2844,7 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, int verbose) } else if ((ftdi->type == TYPE_2232H) ||(ftdi->type == TYPE_4232H)) { - eeprom->high_current = buf[0x00] & HIGH_CURRENT_DRIVE_R; + eeprom->channel_a_type = buf[0x00] & 0x7; eeprom->channel_a_driver = buf[0x00] & DRIVER_VCP; eeprom->channel_b_type = buf[0x01] & 0x7; eeprom->channel_b_driver = buf[0x01] & DRIVER_VCP;