From a11e4c9e6d883c256f5603ece339d6c010b0da58 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Fri, 21 Apr 2017 20:01:20 -0700 Subject: [PATCH] Fix typo --- DS4Windows/DS4Control/ControlSerivce.cs | 4 ++-- DS4Windows/DS4Control/DS4LightBar.cs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/DS4Windows/DS4Control/ControlSerivce.cs b/DS4Windows/DS4Control/ControlSerivce.cs index bb6dc3a..7ee380e 100644 --- a/DS4Windows/DS4Control/ControlSerivce.cs +++ b/DS4Windows/DS4Control/ControlSerivce.cs @@ -178,7 +178,7 @@ namespace DS4Windows DS4Devices.findControllers(); IEnumerable devices = DS4Devices.getDS4Controllers(); int ind = 0; - DS4LightBar.defualtLight = false; + DS4LightBar.defaultLight = false; foreach (DS4Device device in devices) { if (showlog) @@ -254,7 +254,7 @@ namespace DS4Windows { DS4LightBar.forcelight[i] = false; DS4LightBar.forcedFlash[i] = 0; - DS4LightBar.defualtLight = true; + DS4LightBar.defaultLight = true; DS4LightBar.updateLightBar(DS4Controllers[i], i, CurrentState[i], ExposedState[i], touchPad[i]); System.Threading.Thread.Sleep(50); } diff --git a/DS4Windows/DS4Control/DS4LightBar.cs b/DS4Windows/DS4Control/DS4LightBar.cs index a977e96..02914f6 100644 --- a/DS4Windows/DS4Control/DS4LightBar.cs +++ b/DS4Windows/DS4Control/DS4LightBar.cs @@ -39,7 +39,7 @@ namespace DS4Windows * still necessary to reduce lag. */ DS4Color color; - if (!defualtLight && !forcelight[deviceNum]) + if (!defaultLight && !forcelight[deviceNum]) { if (getUseCustomLed(deviceNum)) { @@ -94,7 +94,7 @@ namespace DS4Windows } } - if (device.getBattery() <= getFlashAt(deviceNum) && !defualtLight && !device.isCharging()) + if (device.getBattery() <= getFlashAt(deviceNum) && !defaultLight && !device.isCharging()) { DS4Color flashColor = getFlashColor(deviceNum); if (!(flashColor.red == 0 && @@ -183,7 +183,7 @@ namespace DS4Windows bool distanceprofile = DistanceProfiles[deviceNum] || tempprofileDistance[deviceNum]; //distanceprofile = (ProfilePath[deviceNum].ToLower().Contains("distance") || tempprofilename[deviceNum].ToLower().Contains("distance")); - if (distanceprofile && !defualtLight) + if (distanceprofile && !defaultLight) { //Thing I did for Distance float rumble = device.getLeftHeavySlowRumble() / 2.55f; @@ -206,7 +206,7 @@ namespace DS4Windows haptics.LightBarFlashDurationOff = haptics.LightBarFlashDurationOn = (byte)(25 - forcedFlash[deviceNum]); haptics.LightBarExplicitlyOff = true; } - else if (device.getBattery() <= getFlashAt(deviceNum) && getFlashType(deviceNum) == 0 && !defualtLight && !device.isCharging()) + else if (device.getBattery() <= getFlashAt(deviceNum) && getFlashType(deviceNum) == 0 && !defaultLight && !device.isCharging()) { int level = device.getBattery() / 10; //if (level >= 10) @@ -242,7 +242,7 @@ namespace DS4Windows device.pushHapticState(haptics); } - public static bool defualtLight = false, shuttingdown = false; + public static bool defaultLight = false, shuttingdown = false; public static DS4Color HuetoRGB(float hue, byte sat) {