Fix eeprom flags for eeprom build
authorJarkko Sonninen <kasper@iki.fi>
Thu, 14 Feb 2013 15:02:32 +0000 (16:02 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 14 Feb 2013 15:02:32 +0000 (16:02 +0100)
commitafb9082460cf8602b1843e1a698ec498e3d38d7b
tree6d91968405c7a3c5e9908a5431771e26473a2a49
parent953a958ce0d7c74864c0fafe3a8644c400734ebf
Fix eeprom flags for eeprom build

Original mail on libftdi mailinglist:
-------------------------------------

   Hello,

the eeprom_decode function sets struct ftdi_eeprom flags like this:
   eeprom->self_powered = buf[0x08] & 0x40;
but the eeprom_build uses the flags this way:
   if (eeprom->self_powered == 1)
as the result the bits won't be set. I suggest the patch below.

   - Jarkko Sonninen
src/ftdi.c