git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8970ed7
)
Fix ftdi_set_interface: It get's called before ftdi_usb_open().
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 29 Mar 2010 10:18:10 +0000 (12:18 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 29 Mar 2010 10:18:10 +0000 (12:18 +0200)
Thanks to Marcus Krellig for pointing it out.
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
6db70f1
..
ac56d08
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-163,7
+163,7
@@
struct ftdi_context *ftdi_new(void)
*/
int ftdi_set_interface(struct ftdi_context *ftdi, enum ftdi_interface interface)
{
- if (ftdi == NULL || ftdi->usb_dev == NULL)
+ if (ftdi == NULL)
ftdi_error_return(-2, "USB device unavailable");
switch (interface)