Fixed issue with SONYWA connections having invalid calibration data

This commit is contained in:
Travis Nickles 2018-08-20 13:14:34 -05:00
parent 92550de1ce
commit ac360c426d

View File

@ -436,7 +436,7 @@ namespace DS4Windows
warnInterval = WARN_INTERVAL_BT; warnInterval = WARN_INTERVAL_BT;
audio = new DS4Audio(); audio = new DS4Audio();
micAudio = new DS4Audio(DS4Library.CoreAudio.DataFlow.Capture); micAudio = new DS4Audio(DS4Library.CoreAudio.DataFlow.Capture);
synced = isValidSerial(); runCalib = synced = isValidSerial();
} }
} }
else else
@ -1000,7 +1000,7 @@ namespace DS4Windows
bool controllerSynced = inputReport[31] == 0; bool controllerSynced = inputReport[31] == 0;
if (controllerSynced != synced) if (controllerSynced != synced)
{ {
synced = controllerSynced; runCalib = synced = controllerSynced;
SyncChange?.Invoke(this, EventArgs.Empty); SyncChange?.Invoke(this, EventArgs.Empty);
sendOutputReport(true, true); sendOutputReport(true, true);
} }