From a894179c98b6584b46adfa0e308892d688f59f1e Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Wed, 15 Nov 2017 02:58:16 -0600 Subject: [PATCH] Restart pending output report count when a change is detected --- DS4Windows/DS4Library/DS4Device.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index d20076f..868acea 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -1082,13 +1082,13 @@ namespace DS4Windows } else { - bool output = outputPendCount > 0; - for (int i = 0, arlen = outputReport.Length; !output && i < arlen; i++) - output = outputReport[i] != outputReportBuffer[i]; + bool output = outputPendCount > 0, change = false; + for (int i = 0, arlen = outputReport.Length; !change && i < arlen; i++) + change = outputReport[i] != outputReportBuffer[i]; - if (output) + if (output || change) { - if (outputPendCount == 0) + if (outputPendCount == 0 || change) outputPendCount = 3; outputRumble = true;