On Fri, May 30, 2014 at 4:02 PM, Anders Larsen <al@xxxxxxxxxxx> wrote:
> Hi,
>
>
> On 2014-05-30 07:03, Xiaofan Chen wrote:
>>
>> On Thu, May 29, 2014 at 7:18 AM, Steve Soloski <ssoloski@xxxxxxxxxxxxxx>
>> 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"
>
I see. I mixed it up with libusb where you need to open
the device first.
--
Xiaofan
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|