Make sure calib routine can be skipped on update serial routine

Might not be needed
This commit is contained in:
Travis Nickles 2018-07-10 00:57:55 -05:00
parent cfa2bea4be
commit 1171a56a6b
2 changed files with 8 additions and 2 deletions

View File

@ -407,13 +407,18 @@ namespace DS4Windows
private Thread timeoutCheckThread = null;
private bool timeoutExecuted = false;
private bool timeoutEvent = false;
private bool runCalib;
public bool ShouldRunCalib()
{
return runCalib;
}
public DS4Device(HidDevice hidDevice)
{
hDevice = hidDevice;
conType = HidConnectionType(hDevice);
Mac = hDevice.readSerial();
bool runCalib = true;
runCalib = true;
if (conType == ConnectionType.USB || conType == ConnectionType.SONYWA)
{
inputReport = new byte[64];

View File

@ -234,7 +234,8 @@ namespace DS4Windows
deviceSerials.Add(serial);
}
device.refreshCalibration();
if (device.ShouldRunCalib())
device.refreshCalibration();
}
}
}