libftdi Archives

Subject: Re: 1.0: Allow to search for all FTDI standard VID/PID

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 5 Jul 2011 11:04:04 +0200
Hi Uwe,

On Monday, 4. July 2011 14:27:29 Uwe Bonnes wrote:
> >>>>> "Thomas" == Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx> writes:
>     Thomas> On Tuesday, 28. June 2011 17:04:43 Uwe Bonnes wrote:
>     >> Allow to search for all FTDI standard VID/PID by passing VID:PID
>     >> 0:0 to ftdi_usb_find_all
> 
>     Thomas> Applied, thanks.
> 
>     Thomas> The code will also "work" if VID or PID is NULL only.
> 
> Is any VID/PID == 0 valid? Should we make the condition VID==0 AND
> PID==0?

Dunno if PID 0 is valid. I've checked some local machine via lsusb,
the lowest number I could find was 1. I've also searched the net
for a specification but couldn't find one.

So I guess if we change the condition to VID==0 AND PID==0,
we should be on the safe side.

Cheers,
Thomas

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

Current Thread