1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 09:17:29 +01:00

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
This commit is contained in:
Daniele Gobbetti 2017-04-08 18:46:39 +02:00
parent 018c2a971e
commit 16cff936d3

View File

@ -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};