libftdi Archives

Subject: [EEPROM branch] "size_check" init value

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 24 Sep 2010 09:53:00 +0200
Hello Uwe,

looking at this code:

int ftdi_eeprom_build(struct ftdi_context *ftdi)
{
...
    if ((eeprom->chip == 0x56) || (eeprom->chip == 0x66))
        eeprom->size = 0x100;
    else
        eeprom->size = 0x80;

...
...
    size_check = 0x80;


Shouldn't we init "size_check" with eeprom->size?

Cheers,
Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread