The branch, master has been updated
via 1971c26df1e1aa88c1191401f4e2b0afc1b5b344 (commit)
from 22a1b5c16cfded0f207e608f57f742db404c5fe8 (commit)
- Log -----------------------------------------------------------------
commit 1971c26df1e1aa88c1191401f4e2b0afc1b5b344
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date: Mon Mar 29 12:21:52 2010 +0200
Fix ftdi_set_interface: It gets called before ftdi_usb_open().
Thanks to Marcus Krellig for pointing it out.
-----------------------------------------------------------------------
Summary of changes:
src/ftdi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/ftdi.c b/src/ftdi.c
index df25d44..5c25abd 100644
--- 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)
hooks/post-receive
--
port libftdi to libusb-1.0
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|