From: Uwe Bonnes Date: Fri, 10 Sep 2010 19:40:28 +0000 (+0200) Subject: when building the eeprom image, use the actual determined eeprom size X-Git-Tag: v1.0rc1~133^2~78 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=f75bf1391d34f5dfd8b277030f314758cacf4ed7 when building the eeprom image, use the actual determined eeprom size --- diff --git a/src/ftdi.c b/src/ftdi.c index 7ae48cb..cbe03d2 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2273,6 +2273,11 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi, unsigned char *output) if(eeprom->chip == -1) ftdi_error_return(-5,"No connected EEPROM or EEPROM Type unknown"); + if ((eeprom->chip == 0x56) || (eeprom->chip == 0x66)) + eeprom->size = 0x100; + else + eeprom->size = 0x80; + if (eeprom->manufacturer != NULL) manufacturer_size = strlen(eeprom->manufacturer); if (eeprom->product != NULL)