From f658059d20444d8106aef138eef7554a889ff3ce Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sat, 8 Apr 2017 23:18:47 +0200 Subject: [PATCH] Pebble: really disable battery reporting --- .../service/devices/pebble/DatalogSessionAnalytics.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 419b68b6..80659c5d 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 @@ -58,8 +58,8 @@ 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; //uncoomment this to show the battery status in the control center + if (false && (messageTS > 0 && reportedMilliVolts < 5000)) { //some safety checks, always disabled for now + mGBDeviceEventBatteryInfo.state = BatteryState.BATTERY_NORMAL; mGBDeviceEventBatteryInfo.level = milliVoltstoPercentage(reportedMilliVolts); return new GBDeviceEvent[]{mGBDeviceEventBatteryInfo, null};