MVoz / libmpsse

Automatically exported from code.google.com/p/libmpsse
0 stars 0 forks source link

Open() opens wrong interface #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ftdi_set_interface() should be called before ftdi_usb_open_desc()

The current version does this the other way around, which means that libftdi
will open INTERFACE_A first, then switch to the one passed to Open().
This causes problems if one uses INTERFACE_A for other purposes, spams the 
kernel logs with "did not claim interface X before use", and IIRC will error 
out with libftdi-1.

Original issue reported on code.google.com by zde...@gmail.com on 26 Feb 2012 at 9:07

GoogleCodeExporter commented 9 years ago
Fixed in the latest SVN check in, thanks!

Original comment by heffne...@gmail.com on 9 Mar 2012 at 2:54

GoogleCodeExporter commented 9 years ago
Question about this bug... Is this bug in the 1.1 release?  (I believe that is 
from Jan, but I wanted to make sure)... because maybe this is the problem I am 
having... *wrinkles brow*... I seem to be getting those "did not claim 
interface" messages in the log, but when I open IFACE_C of my device.  So I'm 
thinking maybe I'm experiencing this because I don't have this fix.

Original comment by robokni...@gmail.com on 10 Jul 2012 at 11:33

GoogleCodeExporter commented 9 years ago
Yes, this bug affects version 1.1. It should be fixed in the latest trunk.

Original comment by heffne...@gmail.com on 11 Jul 2012 at 2:03