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 == > BITMODE_SYNCBB)?1:0; > > 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. Cheers, Thomas -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
