summaryrefslogtreecommitdiff
path: root/libusb/version_nano.h
diff options
context:
space:
mode:
authorNathan Hjelm <hjelmn@google.com>2019-08-09 08:59:27 -0700
committerNathan Hjelm <hjelmn@google.com>2019-08-09 09:05:02 -0700
commit96a1f3737584b6b3384d0d5e821e8b7fcae8f2cb (patch)
tree81a5fa9316fa7d9b94d09cf39ea0dd481b5707d5 /libusb/version_nano.h
parent767eafbf7f93a22ba8d33e77afb11469da597405 (diff)
downloadlibusb-96a1f3737584b6b3384d0d5e821e8b7fcae8f2cb.tar.gz
darwin: fix bugs in the reenumeration of devices
This commit fixes two bugs in device re-enumeration (enumeration after init): - The internal device object (cached device) was being re-used but the user-visible one was not. This would cause the user to get stale data when using the device afer reset. Now the (per libusb spec) the user-visible device object is re-used and updated. - If multiple libusb contexts were active then only the first context was handled correctly. Fixed by moving the cached device search out of process_new_device(). Signed-off-by: Nathan Hjelm <hjelmn@google.com>
Diffstat (limited to 'libusb/version_nano.h')
-rw-r--r--libusb/version_nano.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index d7f210e..ba8b13c 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11378
+#define LIBUSB_NANO 11379