git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
5432fb9
)
Fix eeprom decoding of BM chip type: The previous code resulted in a temporary 1...
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Tue, 17 Mar 2009 20:51:37 +0000 (21:51 +0100)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Tue, 17 Mar 2009 20:51:37 +0000 (21:51 +0100)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
b67f950
..
c62ede7
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-1954,7
+1954,8
@@
int ftdi_eeprom_decode(struct ftdi_eeprom *eeprom, unsigned char *buf, int size)
// Addr 04: Product ID
eeprom->product_id = buf[0x04] + (buf[0x05] << 8);
- switch (buf[0x06] + (buf[0x07]<<8))
+ value = buf[0x06] + (buf[0x07]<<8);
+ switch (value)
{
case 0x0400:
eeprom->BM_type_chip = 1;