git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1d1c9d8
)
libftdi: (tomj) report used eeprom size in ftdi_eeprom_build
v0.1
author
Thomas Jarosch
<opensource@intra2net.com>
Mon, 7 Apr 2003 09:34:31 +0000 (09:34 +0000)
committer
Thomas Jarosch
<opensource@intra2net.com>
Mon, 7 Apr 2003 09:34:31 +0000 (09:34 +0000)
ftdi/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/ftdi/ftdi.c
b/ftdi/ftdi.c
index
96415f5
..
afd91f9
100644
(file)
--- a/
ftdi/ftdi.c
+++ b/
ftdi/ftdi.c
@@
-312,7
+312,7
@@
void ftdi_eeprom_initdefaults(struct ftdi_eeprom *eeprom) {
/*
ftdi_eeprom_build return codes:
- 0: all fine
+ positive value: used eeprom size
-1: eeprom size (128 bytes) exceeded by custom strings
*/
int ftdi_eeprom_build(struct ftdi_eeprom *eeprom, unsigned char *output) {
@@
-464,7
+464,7
@@
int ftdi_eeprom_build(struct ftdi_eeprom *eeprom, unsigned char *output) {
output[0x7E] = checksum;
output[0x7F] = checksum >> 8;
- return 0;
+ return size_check;
}