From 8ed611210cf9b99329aa0ef664a82523768594dd Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 7 Apr 2003 09:34:31 +0000 Subject: [PATCH] libftdi: (tomj) report used eeprom size in ftdi_eeprom_build --- ftdi/ftdi.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ftdi/ftdi.c b/ftdi/ftdi.c index 96415f5..afd91f9 100644 --- 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; } -- 1.7.1