git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0091182
)
Fix decoding of FT(2|4)232H channel A type
author
Uwe Bonnes
<bon@elektron.ikp.physik.tu-darmstadt.de>
Wed, 15 Sep 2010 11:20:31 +0000 (13:20 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 20 Sep 2010 13:34:45 +0000 (15:34 +0200)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
b9e3a00
..
aa85278
100644
(file)
--- 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;