From: Uwe Bonnes Date: Wed, 8 Sep 2010 13:16:54 +0000 (+0200) Subject: We need to handle at max 256 Bytes on an attached 93xx66 EEPROM X-Git-Tag: v1.0rc1~133^2~127 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=3d6d20c0add502b5c93c1bda8331711262791440 We need to handle at max 256 Bytes on an attached 93xx66 EEPROM --- diff --git a/src/ftdi.c b/src/ftdi.c index 2a39a45..b251887 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2213,7 +2213,7 @@ void ftdi_eeprom_initdefaults(struct ftdi_context *ftdi) eeprom->high_current = 0; eeprom->invert = 0; - eeprom->size = FTDI_DEFAULT_EEPROM_SIZE; + eeprom->size = FTDI_MAX_EEPROM_SIZE; } /** diff --git a/src/ftdi.h b/src/ftdi.h index 07300b6..b02ed04 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -19,7 +19,8 @@ #include -#define FTDI_DEFAULT_EEPROM_SIZE 128 +/* Evne on 93xx66 at max 256 bytes are used (AN_121)*/ +#define FTDI_MAX_EEPROM_SIZE 256 /** FTDI chip type */ enum ftdi_chip_type { TYPE_AM=0, TYPE_BM=1, TYPE_2232C=2, TYPE_R=3, TYPE_2232H=4, TYPE_4232H=5 };