The branch, master has been updated
via 6b11b482449214d82584185c0b80daadac46c32b (commit)
from 8970ed7e36f5f4aa85dd5c3a47ee5d2e1044a870 (commit)
- Log -----------------------------------------------------------------
commit 6b11b482449214d82584185c0b80daadac46c32b
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date: Mon Mar 29 12:18:10 2010 +0200
Fix ftdi_set_interface: It get's 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 6db70f1..ac56d08 100644
--- 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)
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|