The branch, libftdi-0.x has been updated
via 80d3cf70870aa4d1c8125bdf7ca00552b8a1ab57 (commit)
from dea15ce4c747c6f35dd5cae0df9cbe41df091292 (commit)
- Log -----------------------------------------------------------------
commit 80d3cf70870aa4d1c8125bdf7ca00552b8a1ab57
Author: Peter Schneider <pitpompej@xxxxxxxx>
Date: Tue Jan 3 10:44:55 2012 +0100
Fixes the three open methods of the cpp wrapper that do not get an
usb-device parameter as they have never really worked yet.
-----------------------------------------------------------------------
Summary of changes:
ftdipp/ftdi.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ftdipp/ftdi.cpp b/ftdipp/ftdi.cpp
index 8511a91..5868405 100644
--- a/ftdipp/ftdi.cpp
+++ b/ftdipp/ftdi.cpp
@@ -85,6 +85,8 @@ int Context::open(int vendor, int product)
if (ret < 0)
return ret;
+ d->dev = usb_device(d->ftdi->usb_dev);
+
return get_strings_and_reopen();
}
@@ -104,6 +106,8 @@ int Context::open(int vendor, int product, const
std::string& description, const
if (ret < 0)
return ret;
+ d->dev = usb_device(d->ftdi->usb_dev);
+
return get_strings_and_reopen();
}
@@ -114,6 +118,8 @@ int Context::open(const std::string& description)
if (ret < 0)
return ret;
+ d->dev = usb_device(d->ftdi->usb_dev);
+
return get_strings_and_reopen();
}
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
|