Comment out delay when re-enabling a device

Will likely remove later
This commit is contained in:
Travis Nickles 2020-02-14 15:25:41 -06:00
parent b24c72f559
commit 424b252a95

View File

@ -391,7 +391,7 @@ namespace DS4Windows
} }
//System.Threading.Thread.Sleep(50); //System.Threading.Thread.Sleep(50);
sw.Restart(); /*sw.Restart();
while (sw.ElapsedMilliseconds < 50) while (sw.ElapsedMilliseconds < 50)
{ {
// Use SpinWait to keep control of current thread. Using Sleep could potentially // Use SpinWait to keep control of current thread. Using Sleep could potentially
@ -399,6 +399,7 @@ namespace DS4Windows
System.Threading.Thread.SpinWait(100); System.Threading.Thread.SpinWait(100);
} }
sw.Stop(); sw.Stop();
*/
NativeMethods.SetupDiDestroyDeviceInfoList(deviceInfoSet); NativeMethods.SetupDiDestroyDeviceInfoList(deviceInfoSet);
} }