From: Anders Larsen Date: Tue, 3 Jul 2012 21:24:07 +0000 (+0200) Subject: ftdi_eeprom: reset the device after flashing the eeprom X-Git-Tag: v1.0rc1~24^2~4 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=a182572280dafe54b975a688332ddd2649cf61b0 ftdi_eeprom: reset the device after flashing the eeprom If we change e.g. the product-id the change will take effect immediately without having to unplug/replug the device. Signed-off-by: Anders Larsen --- diff --git a/ftdi_eeprom/main.c b/ftdi_eeprom/main.c index 5127eeb..4eb0f5e 100644 --- a/ftdi_eeprom/main.c +++ b/ftdi_eeprom/main.c @@ -37,6 +37,7 @@ #include #include +#include #include #include @@ -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?