git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
dea15ce
)
Fixes the three open methods of the cpp wrapper that do not get an usb-device paramet...
author
Peter Schneider
<pitpompej@arcor.de>
Tue, 3 Jan 2012 09:44:55 +0000 (10:44 +0100)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 9 Jan 2012 15:52:03 +0000 (16:52 +0100)
ftdipp/ftdi.cpp
patch
|
blob
|
blame
|
history
diff --git
a/ftdipp/ftdi.cpp
b/ftdipp/ftdi.cpp
index
8511a91
..
5868405
100644
(file)
--- 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();
}