mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-24 15:41: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)
|
if (!inHotPlug)
|
||||||
{
|
{
|
||||||
inHotPlug = true;
|
inHotPlug = true;
|
||||||
TaskRunner.Run(() => { InnerHotplug2(uiContext); });
|
TaskRunner.Run(() => { Thread.Sleep(10); InnerHotplug2(uiContext); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1047,7 +1047,7 @@ namespace DS4Windows
|
|||||||
private void InnerHotplug2(SynchronizationContext uiContext)
|
private void InnerHotplug2(SynchronizationContext uiContext)
|
||||||
{
|
{
|
||||||
inHotPlug = true;
|
inHotPlug = true;
|
||||||
|
|
||||||
bool loopHotplug = false;
|
bool loopHotplug = false;
|
||||||
lock (hotplugCounterLock)
|
lock (hotplugCounterLock)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user