mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-23 23:21:49 +01:00
Add sleep period before hotplug routine
Needed for first output report to be received
This commit is contained in:
parent
6190ddff9b
commit
e6df8c939e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user