summaryrefslogtreecommitdiff
path: root/src/components/battery/BatteryController.h
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-10-18 21:14:39 (GMT)
committerKieran Cawthray <kieranc@gmail.com>2021-10-18 21:14:39 (GMT)
commitff1fce18d6188d8b23374613f07e281173f228e7 (patch)
tree7d8bcf5448f86f31f092f4f554a8af167c225d7d /src/components/battery/BatteryController.h
parentc4ab17f58707771256c6fffd8db63d32e2831610 (diff)
parentab7c6e162f82674d176466d361b1f87a0d55cf4a (diff)
Merge remote-tracking branch 'upstream/develop' into pts-settings
Diffstat (limited to 'src/components/battery/BatteryController.h')
-rw-r--r--src/components/battery/BatteryController.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/battery/BatteryController.h b/src/components/battery/BatteryController.h
index c78ffb3..5a7394c 100644
--- a/src/components/battery/BatteryController.h
+++ b/src/components/battery/BatteryController.h
@@ -10,7 +10,8 @@ namespace Pinetime {
public:
Battery();
- void Update();
+ void ReadPowerState();
+ void MeasureVoltage();
void Register(System::SystemTask* systemTask);
uint8_t PercentRemaining() const {
@@ -42,6 +43,7 @@ namespace Pinetime {
bool isFull = false;
bool isCharging = false;
bool isPowerPresent = false;
+ bool firstMeasurement = true;
void SaadcInit();