Hello all,

I'm new here. I have designed a system with an FT4232H for which we are
using a PID allocated by FTDI. I wanted to use ftdi_eeprom to configure
this (and avoid the painful install-the-driver-eight-times-per-unit
behaviour of Windoze) but found it wouldn't do the job. The
configuration file gave the new PID and the program therefore couldn't
see the blank FT4232.

I attach a patch (against current git, I hope) that fixes this, by
changing the fall-back behaviour to try the three defaults for the
various devices, rather than only the original one.

Cheers,
Rob


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]   
diff -ur ftdi_eeprom-0.2/ftdi_eeprom/main.c ftdi_eeprom-0.2-r2/ftdi_eeprom/main.c
--- ftdi_eeprom/src/main.c	2004-03-25 18:58:08.000000000 +0000
+++ ftdi_eeprom-r2/src/main.c	2011-07-23 15:57:58.000000000 +0100
@@ -199,9 +199,13 @@
 	else
 	{
 	    printf("Unable to find FTDI devices under given vendor/product id: 0x%X/0x%X\n", eeprom.vendor_id, eeprom.product_id);
 	    printf("Error code: %d (%s)\n", i, ftdi_get_error_string(&ftdi));
-	    printf("Retrying with default FTDI id.\n");
+	    printf("Retrying with default FTDI ids.\n");
 
     	    i = ftdi_usb_open(&ftdi, 0x0403, 0x6001);
+	    if (i != 0)
+    	    	i = ftdi_usb_open(&ftdi, 0x0403, 0x6010);
+	    if (i != 0)
+    	    	i = ftdi_usb_open(&ftdi, 0x0403, 0x6011);
 	    if (i != 0)
            {
 		printf("Error: %s\n", ftdi.error_str);
 		exit (-1);

Reply via email to