From 1d238e8b8b9b54e973cc7ace71eab639289c73b8 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 31 Dec 2017 09:11:46 -0600 Subject: [PATCH] Fixed index bug in hotplug routine --- DS4Windows/DS4Control/ControlService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index a303b17..14d1ea4 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -326,14 +326,14 @@ namespace DS4Windows device.SerialChange += this.On_SerialChange; if (device.isValidSerial() && containsLinkedProfile(device.getMacAddress())) { - ProfilePath[i] = getLinkedProfile(device.getMacAddress()); + ProfilePath[Index] = getLinkedProfile(device.getMacAddress()); } else { - ProfilePath[i] = OlderProfilePath[i]; + ProfilePath[Index] = OlderProfilePath[Index]; } - LoadProfile(i, false, this, false, false); + LoadProfile(Index, false, this, false, false); touchPad[Index] = new Mouse(Index, device); device.LightBarColor = getMainColor(Index); device.Report += this.On_Report;