From e3ed777682f4fa2135bf61b67b74c2842aaf0478 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Fri, 26 Oct 2018 01:37:51 -0500 Subject: [PATCH] Removed unnecessary array copy for USB and SONYWA connections --- DS4Windows/DS4Library/DS4Device.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index f6d4fd7..0e62794 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -1186,10 +1186,9 @@ namespace DS4Windows if (usingBT) { Monitor.Enter(outputReport); + outReportBuffer.CopyTo(outputReport, 0); } - outReportBuffer.CopyTo(outputReport, 0); - try { if (!writeOutput())