Hi,

The attached patch initializes eeprom->size and fixes the address of the
high_current flag. It's against the Nov 29, 2010 git tree.

Tamas



--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]   
--- libftdi-2010.11.29/src/ftdi.c.orig	2010-11-30 15:10:05.000000000 -0500
+++ libftdi-2010.11.29/src/ftdi.c	2010-11-30 15:03:19.000000000 -0500
@@ -2466,8 +2466,10 @@
     // empty eeprom struct
     memset(eeprom, 0, sizeof(struct ftdi_eeprom));
 
+    eeprom->size = eeprom_size;
+
     // Addr 00: High current IO
-    eeprom->high_current = (buf[0x02] & HIGH_CURRENT_DRIVE);
+    eeprom->high_current = (buf[0x00] & HIGH_CURRENT_DRIVE);
 
     // Addr 02: Vendor ID
     eeprom->vendor_id = buf[0x02] + (buf[0x03] << 8);

Reply via email to