git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
add00ad
)
Fix wrong offset for CBUS_FUNCTION_9 via ftdi_get_eeprom_value()
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Thu, 12 Feb 2015 21:42:14 +0000 (22:42 +0100)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Thu, 12 Feb 2015 21:42:14 +0000 (22:42 +0100)
Reported by Denis Davydov. Thanks!
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
1e3b445
..
68489ea
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-3684,7
+3684,7
@@
int ftdi_get_eeprom_value(struct ftdi_context *ftdi, enum ftdi_eeprom_value valu
*value = ftdi->eeprom->cbus_function[8];
break;
case CBUS_FUNCTION_9:
- *value = ftdi->eeprom->cbus_function[8];
+ *value = ftdi->eeprom->cbus_function[9];
break;
case HIGH_CURRENT:
*value = ftdi->eeprom->high_current;