From 320c3ee6f60f0eb3961e8f154b0de94ac1810270 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Wed, 11 Oct 2017 18:07:34 -0500 Subject: [PATCH] Make sure to add device serial to HashSet when DS4Device instance is created Make sure USB charging does not create second DS4Device instance --- DS4Windows/DS4Library/DS4Devices.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DS4Windows/DS4Library/DS4Devices.cs b/DS4Windows/DS4Library/DS4Devices.cs index 74d93f0..d8e4810 100644 --- a/DS4Windows/DS4Library/DS4Devices.cs +++ b/DS4Windows/DS4Library/DS4Devices.cs @@ -123,6 +123,7 @@ namespace DS4Windows //ds4Device.Removal += On_Removal; Devices.Add(hDevice.DevicePath, ds4Device); DevicePaths.Add(hDevice.DevicePath); + deviceSerials.Add(serial); } } }