libftdi Archives

Subject: Re: BUG: CBUS Bitbang Mode Breaks the ftdi_set_baudrate function

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 20 Apr 2010 22:08:27 +0200
Hello Logan,

On 03/30/2010 06:23 PM, Logan Gunthorpe wrote:
> I believe the bug is on the second last line of the ftdi_set_bitmode
> function. In 0.17 it is:
> ftdi->bitbang_enabled = (mode == BITMODE_RESET) ? 0 : 1;
> In 0.16 it is:
> ftdi->bitbang_enabled = (mode == BITMODE_BITBANG || mode ==
> The ftdi->bitbang_enabled flag appears to cause the baudrate set to be
> multiplied by 4. Therefore, in 0.16 when the mode is BITMODE_CBUS the
> flag is not set and setting the baudrate functions correctly. In 0.17
> the flag gets set and the baudrate can no longer be changed without
> dividing it by 4 first.
> I'm not sure about the other bit bang modes, but perhaps this change
> should be revisited.

Thanks for your bug report. My colleague currently investigates
the baud rate handling of libftdi, I'll hand this one over to him.
I guess it will be fixed for the next libftdi release.


libftdi - see for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread