summaryrefslogtreecommitdiff
path: root/src/components/battery/BatteryController.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2021-10-03 22:41:38 (GMT)
committerRiku Isokoski <riksu9000@gmail.com>2021-10-03 22:41:38 (GMT)
commita9f7153fdf92b097b14143b77645f6608ac1bf9c (patch)
tree1876a6716f5e4cc4ec5149de6982937f95a0d694 /src/components/battery/BatteryController.h
parentb84a54692050d7c665e568e8e2007932e9cd94d0 (diff)
Improve battery percentage calculation and reporting
While charging, percentage should only go up, and while discharging, percentage should only go down.
Diffstat (limited to 'src/components/battery/BatteryController.h')
-rw-r--r--src/components/battery/BatteryController.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/battery/BatteryController.h b/src/components/battery/BatteryController.h
index c78ffb3..55c2630 100644
--- a/src/components/battery/BatteryController.h
+++ b/src/components/battery/BatteryController.h
@@ -42,6 +42,7 @@ namespace Pinetime {
bool isFull = false;
bool isCharging = false;
bool isPowerPresent = false;
+ bool firstMeasurement = true;
void SaadcInit();