On Monday, 14. May 2012 20:49:10 Ladislav Vaiz wrote:
> Hello again,
> I found solution. One must call ftdi_set_bitmode with BITMODE_RESET to
> clear bitmode previously set by bitbang test program. Or replug the
> device. My assumption that ftdi_open resets the device was wrong.
>
> I think this e-mail will spare some time to my folowers ;-)
Interesting find, ftdi_usb_open_dev() actually calls ftdi_usb_reset().
Looks like this is not enough.
I think it's safe if we add the BITMODE_RESET after the
ftdi_usb_reset() call in ftdi_usb_open_dev(). Any objections?
Thomas
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|