git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
025db2c
)
C++ wrapper: Reset internal USB device pointer on Context::close()
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 16 Jan 2012 14:44:31 +0000 (15:44 +0100)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 16 Jan 2012 14:44:31 +0000 (15:44 +0100)
ftdipp/ftdi.cpp
patch
|
blob
|
blame
|
history
diff --git
a/ftdipp/ftdi.cpp
b/ftdipp/ftdi.cpp
index
f1c1cef
..
e2755d8
100644
(file)
--- a/
ftdipp/ftdi.cpp
+++ b/
ftdipp/ftdi.cpp
@@
-132,6
+132,7
@@
int Context::open(struct libusb_device *dev)
int Context::close()
{
d->open = false;
+ d->dev = 0;
return ftdi_usb_close(d->ftdi);
}