From 4e31465ab7d83b5a5b68f5f9d27d6c77caa07b8b Mon Sep 17 00:00:00 2001 From: Nathan Hjelm Date: Fri, 28 Sep 2012 21:18:08 -0600 Subject: [PATCH] Darwin: Reduce attempts to retrieve a device descriptor during enumeration --- libusb/os/darwin_usb.c | 4 ++-- libusb/version_nano.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c index 63c2bae..bfe1b68 100644 --- a/libusb/os/darwin_usb.c +++ b/libusb/os/darwin_usb.c @@ -1,6 +1,6 @@ /* * darwin backend for libusbx 1.0 - * Copyright © 2008-2011 Nathan Hjelm + * Copyright © 2008-2012 Nathan Hjelm * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -595,7 +595,7 @@ static int darwin_check_configuration (struct libusb_context *ctx, struct libusb static int darwin_cache_device_descriptor (struct libusb_context *ctx, struct libusb_device *dev, usb_device_t **device) { struct darwin_device_priv *priv; - int retries = 5, delay = 30000; + int retries = 2, delay = 30000; int unsuspended = 0, try_unsuspend = 1, try_reconfigure = 1; int is_open = 0; int ret = 0, ret2; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 355feae..eec903c 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10580 +#define LIBUSB_NANO 10581 -- 2.11.4.GIT