From 0f705e667e9bd5d89d78d1eb4e4e1a99b6bb0128 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 9 Apr 2017 01:17:52 -0700 Subject: [PATCH] Remove unneeded warn field usage --- DS4Windows/DS4Library/DS4Device.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index c773442..2849a33 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -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);