From e6df8c939e063bf1436f0c30423617fcc97828c8 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 26 Aug 2017 06:28:42 -0500 Subject: [PATCH] Add sleep period before hotplug routine Needed for first output report to be received --- DS4Windows/DS4Forms/DS4Form.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index cc6f0a9..7954e28 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -1029,7 +1029,7 @@ namespace DS4Windows if (!inHotPlug) { inHotPlug = true; - TaskRunner.Run(() => { InnerHotplug2(uiContext); }); + TaskRunner.Run(() => { Thread.Sleep(10); InnerHotplug2(uiContext); }); } } } @@ -1047,7 +1047,7 @@ namespace DS4Windows private void InnerHotplug2(SynchronizationContext uiContext) { inHotPlug = true; - + bool loopHotplug = false; lock (hotplugCounterLock) {