Hi Nathael,
also applied, thanks a lot for this!
I'm a bit worried about this change:
@@ -2560,10 +2578,12 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi)
if (eeprom->chip == -1)
ftdi_error_return(-6,"No connected EEPROM or EEPROM type unknown");
- if ((eeprom->chip == 0x56) || (eeprom->chip == 0x66))
- eeprom->size = 0x100;
- else
- eeprom->size = 0x80;
+ if (eeprom->size == -1) {
+ if ((eeprom->chip == 0x56) || (eeprom->chip == 0x66))
+ eeprom->size = 0x100;
+ else
+ eeprom->size = 0x80;
+ }
if (eeprom->manufacturer != NULL)
manufacturer_size = strlen(eeprom->manufacturer);
This changes the behavior for the existing chip types.
Was that intentional?
Thomas
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|