From 16cff936d37bd3ac5ecd1c13879a71550e8f746a Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Sat, 8 Apr 2017 18:46:39 +0200 Subject: [PATCH] Pebble: do not show the battery state in the control center - the mapping voltage<->percentage is probably family dependent (or perhaps even device dependent!) - the values are often outdated by more than one hour, this could yield to issue reports which are false positive --- .../service/devices/pebble/DatalogSessionAnalytics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionAnalytics.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionAnalytics.java index 9a696952c..419b68b69 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionAnalytics.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionAnalytics.java @@ -59,7 +59,7 @@ class DatalogSessionAnalytics extends DatalogSession { LOG.info("Battery reading for TS " + messageTS + " is: " + reportedMilliVolts + " milliVolts, mapped to percentage: " + milliVoltstoPercentage(reportedMilliVolts)); if (messageTS > 0 && reportedMilliVolts < 5000) { //some safety checks - mGBDeviceEventBatteryInfo.state = BatteryState.BATTERY_NORMAL; +// mGBDeviceEventBatteryInfo.state = BatteryState.BATTERY_NORMAL; //uncoomment this to show the battery status in the control center mGBDeviceEventBatteryInfo.level = milliVoltstoPercentage(reportedMilliVolts); return new GBDeviceEvent[]{mGBDeviceEventBatteryInfo, null};