Remove unneeded warn field usage

This commit is contained in:
Travis Nickles 2017-04-09 01:17:52 -07:00
parent 4ae7be8823
commit 0f705e667e

View File

@ -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);