git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
22a1b5c
)
Fix ftdi_set_interface: It gets called before ftdi_usb_open().
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 29 Mar 2010 10:21:52 +0000 (12:21 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 29 Mar 2010 10:21:52 +0000 (12:21 +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
df25d44
..
5c25abd
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-135,7
+135,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)