The branch, master has been updated
via 8de26dde953c5bdd118090d6f6d04dcc1146a084 (commit)
from 13ea50d2302a8740d964ed50eb7906f349198e1a (commit)
- Log -----------------------------------------------------------------
commit 8de26dde953c5bdd118090d6f6d04dcc1146a084
Author: Forest Crossman <cyrozap@xxxxxxxxx>
Date: Fri Oct 31 13:17:16 2014 -0400
Enable searching for FTDI devices with either a VID or PID of zero
This change makes it possible to detect FTDI clone chips that have been
"bricked" by the FTDI Windows driver (PID set to zero)
Signed-off-by: Forest Crossman <cyrozap@xxxxxxxxx>
-----------------------------------------------------------------------
Summary of changes:
src/ftdi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ftdi.c b/src/ftdi.c
index bad338d..32b3817 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -328,9 +328,9 @@ int ftdi_usb_find_all(struct ftdi_context *ftdi, struct
ftdi_device_list **devli
if (libusb_get_device_descriptor(dev, &desc) < 0)
ftdi_error_return_free_device_list(-6,
"libusb_get_device_descriptor() failed", devs);
- if (((vendor != 0 && product != 0) &&
+ if (((vendor || product) &&
desc.idVendor == vendor && desc.idProduct == product) ||
- ((vendor == 0 && product == 0) &&
+ (!(vendor || product) &&
(desc.idVendor == 0x403) && (desc.idProduct == 0x6001 ||
desc.idProduct == 0x6010
|| desc.idProduct == 0x6011 ||
desc.idProduct == 0x6014)))
{
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|