mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 11:04:21 +01:00
Make sure calib routine can be skipped on update serial routine
Might not be needed
This commit is contained in:
parent
cfa2bea4be
commit
1171a56a6b
@ -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];
|
||||
|
@ -234,7 +234,8 @@ namespace DS4Windows
|
||||
deviceSerials.Add(serial);
|
||||
}
|
||||
|
||||
device.refreshCalibration();
|
||||
if (device.ShouldRunCalib())
|
||||
device.refreshCalibration();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user