mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-02 18:12:32 +01:00
Remove unneeded warn field usage
This commit is contained in:
parent
4ae7be8823
commit
0f705e667e
@ -478,7 +478,6 @@ namespace DS4Windows
|
||||
}
|
||||
private byte priorInputReport30 = 0xff;
|
||||
public double Latency = 0;
|
||||
bool warn = false;
|
||||
public string error;
|
||||
private void performDs4Input()
|
||||
{
|
||||
@ -499,13 +498,6 @@ namespace DS4Windows
|
||||
|
||||
this.Latency = Latency.Average();
|
||||
|
||||
if (this.Latency > warnInterval && !warn && sw.ElapsedMilliseconds > 4000)
|
||||
{
|
||||
warn = true;
|
||||
//System.Diagnostics.Trace.WriteLine(System.DateTime.UtcNow.ToString("o") + "> " + "Controller " + /*this.DeviceNum*/ + 1 + " (" + this.MacAddress + ") is experiencing latency issues. Currently at " + Math.Round(this.Latency, 2).ToString() + "ms of recomended maximum 10ms");
|
||||
}
|
||||
else if (this.Latency <= warnInterval && warn) warn = false;
|
||||
|
||||
if (conType == ConnectionType.BT)
|
||||
{
|
||||
//HidDevice.ReadStatus res = hDevice.ReadFile(btInputReport);
|
||||
|
Loading…
x
Reference in New Issue
Block a user