mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Fixed SonyWA disconnect on Windows 7
Was broken since 1.6.4 with change to sending output packets
This commit is contained in:
parent
a7192d2fbf
commit
b536ca3a83
@ -735,6 +735,7 @@ namespace DS4Windows
|
||||
ds4InactiveFrame = true;
|
||||
idleInput = true;
|
||||
bool syncWriteReport = conType != ConnectionType.BT;
|
||||
bool forceWrite = false;
|
||||
|
||||
int maxBatteryValue = 0;
|
||||
int tempBattery = 0;
|
||||
@ -1022,7 +1023,14 @@ namespace DS4Windows
|
||||
{
|
||||
runCalib = synced = controllerSynced;
|
||||
SyncChange?.Invoke(this, EventArgs.Empty);
|
||||
sendOutputReport(true, true);
|
||||
if (synced)
|
||||
{
|
||||
forceWrite = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
standbySw.Reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1101,7 +1109,8 @@ namespace DS4Windows
|
||||
if (Report != null)
|
||||
Report(this, EventArgs.Empty);
|
||||
|
||||
sendOutputReport(syncWriteReport);
|
||||
sendOutputReport(syncWriteReport, forceWrite);
|
||||
forceWrite = false;
|
||||
|
||||
if (!string.IsNullOrEmpty(currerror))
|
||||
error = currerror;
|
||||
|
Loading…
x
Reference in New Issue
Block a user