git://developer.intra2net.com
/
ftdi_eeprom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c9cf995
)
ftdi_eeprom: (tomj) fix crash found by testing new EEPROM code (#1268)
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Thu, 7 Feb 2008 14:50:42 +0000 (14:50 +0000)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Thu, 7 Feb 2008 14:50:42 +0000 (14:50 +0000)
src/main.c
patch
|
blob
|
blame
|
history
diff --git
a/src/main.c
b/src/main.c
index
1cd5efc
..
1bde662
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-101,6
+101,7
@@
int main(int argc, char *argv[]) {
if (cfg_getbool(cfg, "self_powered") && cfg_getint(cfg, "max_power") > 0)
printf("Hint: Self powered devices should have a max_power setting of 0.\n");
+ ftdi_init(&ftdi);
ftdi_eeprom_initdefaults (&eeprom);
eeprom.vendor_id = cfg_getint(cfg, "vendor_id");
@@
-125,7
+126,6
@@
int main(int argc, char *argv[]) {
eeprom.serial = cfg_getstr(cfg, "serial");
if (_read > 0 || _erase > 0 || _flash > 0) {
- printf("FTDI init: %d\n", ftdi_init(&ftdi));
i = ftdi_usb_open(&ftdi, eeprom.vendor_id, eeprom.product_id);
if (i != 0) {