From 05fd7316cfa0a360574a05f98a21ccaf1f6c3b41 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Fri, 26 May 2017 20:14:48 -0700 Subject: [PATCH] Keep small snippet for future reference --- DS4Windows/DS4Library/DS4Device.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index 4877fb0..a3b314b 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -760,6 +760,7 @@ namespace DS4Windows int tempBattery = (inputReport[30] & 0x0f) * 100 / maxBatteryValue; battery = Math.Min((byte)tempBattery, (byte)100); cState.Battery = (byte)battery; + //System.Diagnostics.Debug.WriteLine("CURRENT BATTERY: " + (inputReport[30] & 0x0f) + " | " + tempBattery + " | " + battery); if (inputReport[30] != priorInputReport30) { priorInputReport30 = inputReport[30];