diff --git a/DS4Windows/DS4Control/ControlSerivce.cs b/DS4Windows/DS4Control/ControlSerivce.cs index 2621435..0aa3f3f 100644 --- a/DS4Windows/DS4Control/ControlSerivce.cs +++ b/DS4Windows/DS4Control/ControlSerivce.cs @@ -4,10 +4,10 @@ using System.Linq; using System.Text; using System.IO; -using System.Reflection; using System.Media; using System.Threading.Tasks; using static DS4Windows.Global; + namespace DS4Windows { public class ControlService @@ -587,17 +587,16 @@ namespace DS4Windows device.getPreviousState(PreviousState[ind]); DS4State pState = PreviousState[ind]; - if (pState.Battery != cState.Battery) - { - OnBatteryStatusChange(this, ind, cState.Battery); - //ControllerStatusChanged(this); - } - if (!device.firstReport && device.IsAlive()) { device.firstReport = true; OnDeviceStatusChanged(this, ind); } + else if (pState.Battery != cState.Battery) + { + OnBatteryStatusChange(this, ind, cState.Battery); + //ControllerStatusChanged(this); + } if (getEnableTouchToggle(ind)) {