git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ad7ced1
)
ftdi_eeprom: reset the device after flashing the eeprom
author
Anders Larsen
<al@alarsen.net>
Tue, 3 Jul 2012 21:24:07 +0000 (23:24 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Sat, 7 Jul 2012 12:45:08 +0000 (14:45 +0200)
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 <al@alarsen.net>
ftdi_eeprom/main.c
patch
|
blob
|
blame
|
history
diff --git
a/ftdi_eeprom/main.c
b/ftdi_eeprom/main.c
index
5127eeb
..
4eb0f5e
100644
(file)
--- a/
ftdi_eeprom/main.c
+++ b/
ftdi_eeprom/main.c
@@
-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?