ftdi_eeprom: reset the device after flashing the eeprom
[libftdi] / ftdi_eeprom / main.c
index 5127eeb..4eb0f5e 100644 (file)
@@ -37,6 +37,7 @@
 #include <string.h>
 
 #include <confuse.h>
+#include <libusb.h>
 #include <ftdi.h>
 #include <ftdi_eeprom_version.h>
 
@@ -352,6 +353,7 @@ int main(int argc, char *argv[])
             }
         }
         printf ("FTDI write eeprom: %d\n", ftdi_write_eeprom(ftdi));
+        libusb_reset_device(ftdi->usb_dev);
     }
 
     // Write to file?