libftdi Archives

Subject: Re: Eeprom bits

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Thu, 14 Feb 2013 16:06:17 +0100
Terve Jarkko,

On Thursday, 7. February 2013 22:41:58 Jarkko Sonninen wrote:
> 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.

Applied, thanks. Something went wrong with the patch,
I did the changes manually.

Cheers,
Thomas


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

Current Thread