libftdi Archives
|
From: | Jarkko Sonninen <kasper@xxxxxx> |
---|---|
To: | <libftdi@xxxxxxxxxxxxxxxxxxxxxxx> |
Date: | Thu, 07 Feb 2013 22:38:48 +0200 |
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. -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details.To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx |
Current Thread |
---|
|