libftdi Archives

Subject: blank eeproms

From: Clive Stubbings <clive.stubbings@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 25 Apr 2014 16:32:03 +0100 (BST)
Hi,

I'm having a bit of difficulty talking to blank eeproms. eeprom->size is not accessible from outside the library and there seems to be no way to get the library to set it for some devices.

The following patch will help. I think this behavior makes more sense since you are writing the raw eeprom content to the library.

@@ -3969,6 +3971,8 @@ int ftdi_set_eeprom_buf(struct ftdi_context *ftdi, const 
unsigned char * buf, in

     memcpy(ftdi->eeprom->buf, buf, size);

+       ftdi->eeprom->size = size;
+
     return 0;
 }




Thanks
Clive


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
Current Thread
  • blank eeproms, Clive Stubbings <=