From afea15f38f7a1627314c73cca33b8f960b31abca Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Fri, 22 Feb 2019 01:51:54 -0600 Subject: [PATCH] Output report len is constant No need to pull from property every poll --- DS4Windows/DS4Control/X360Device.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/DS4Control/X360Device.cs b/DS4Windows/DS4Control/X360Device.cs index f794d5e..256d817 100644 --- a/DS4Windows/DS4Control/X360Device.cs +++ b/DS4Windows/DS4Control/X360Device.cs @@ -100,7 +100,7 @@ namespace DS4Windows Output[4] = (Byte)(device + firstController); Output[9] = 0x14; - for (int i = 10, outLen = Output.Length; i < outLen; i++) + for (int i = 10; i < 28; i++) { Output[i] = 0; }