Hi,

On 2014-05-30 07:03, Xiaofan Chen wrote:
On Thu, May 29, 2014 at 7:18 AM, Steve Soloski <[email protected]> wrote:
>         ftdi_set_interface(dev, INTERFACE_B);
>         ftdi_usb_open(dev, PICAM_USB_VID, PICAM_USB_PID);

I believe you need to reverse the order of the previous two
calls. You need to open the device and then set_interface.

no, the order is correct.

With the order reversed ftdi_set_interface() errors out with:
"Interface can not be changed on an already open device"

Cheers
Anders
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]

Reply via email to