From 0174d8ea70f3d7180e6ea3da2b3720273adb33d9 Mon Sep 17 00:00:00 2001
From: Dean Camera <dean@fourwalledcubicle.com>
Date: Sat, 4 Sep 2010 10:17:09 +0000
Subject: [PATCH] Reduced HOST_DEVICE_SETTLE_DELAY_MS to 1000ms down from
 1500ms to improve device compatibility while in USB Host mode, as some
 devices will drop off the USB bus if no connection is made within a timeout
 period.

---
 LUFA/Drivers/USB/LowLevel/Host.h | 7 ++++---
 LUFA/ManPages/ChangeLog.txt      | 1 +
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/LUFA/Drivers/USB/LowLevel/Host.h b/LUFA/Drivers/USB/LowLevel/Host.h
index aae1fa2f0..8623c4ec6 100644
--- a/LUFA/Drivers/USB/LowLevel/Host.h
+++ b/LUFA/Drivers/USB/LowLevel/Host.h
@@ -95,10 +95,11 @@
 				 *  after connection before the enumeration process can start or incorrect operation will
 				 *  occur.
 				 *
-				 *  This value may be overridden in the user project makefile as the value of the 
-				 *  HOST_DEVICE_SETTLE_DELAY_MS token, and passed to the compiler using the -D switch.
+				 *  The default delay value may be overridden in the user project makefile by definining the
+				 *  HOST_DEVICE_SETTLE_DELAY_MS token to tbe required delay in milliseconds, and passed to the
+				 *  compiler using the -D switch.
 				 */
-				#define HOST_DEVICE_SETTLE_DELAY_MS        1500
+				#define HOST_DEVICE_SETTLE_DELAY_MS        1000
 			#endif
 
 		/* Enums: */
diff --git a/LUFA/ManPages/ChangeLog.txt b/LUFA/ManPages/ChangeLog.txt
index a23ad81d9..0467e2815 100644
--- a/LUFA/ManPages/ChangeLog.txt
+++ b/LUFA/ManPages/ChangeLog.txt
@@ -28,6 +28,7 @@
   *    not break communications with the host by exceeding the maximum control request stage timeout period
   *  - Changed the signature of the CALLBACK_USB_GetDescriptor() callback function so that the descriptor pointer is const, to remove
   *    the need for extra casting inside the callback (thanks to Jonathan Kollasch)
+  *  - Reduced HOST_DEVICE_SETTLE_DELAY_MS to 1000ms down from 1500ms to improve device compatibility while in USB Host mode
   *
   *  <b>Fixed:</b>
   *  - Fixed USB_GetHIDReportItemInfo() function modifying the given report item's data when the report item does not exist
-- 
GitLab