libftdi Archives

Subject: Re: patch to libftdi-1.0 git head, fix opening of multiple devices

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Thu, 17 Jan 2013 14:32:49 +0100
Hello Rolf,

On Thursday, 17. January 2013 08:06:15 derRolf@xxxxxxxxxxxxxx wrote:
> I had sent this patch again at the end of last year. It is needed to open
> multiple devices from a single process. The problem is that when in the
> list of devices a device at the start of the list has already been
> opened, the reading of device parameters for the already opened device
> fails. Currently the list is then not traversed any further and open
> returns with an error. The patch changes that so the list of devices is
> searched for the device to open until the list end.
> 
> Please apply or comment.

Thanks for the patch. I see what you are trying to do :)

The problem is that the patch heavily modifies the current behavior.
So this is not something to rush in before the final 1.0 release,
at least in the current form.

If some existing code expects the function to fail,
it will no longer work correctly.

Do you have an own PID/VID for your USB device?
Then you don't need to pass the "description"
and "serial" buffer in there and it would
work with the current code of libftdi.

Other ideas?

Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread