summaryrefslogtreecommitdiff
path: root/src/components/battery/BatteryController.h
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-07-12 11:01:11 (GMT)
committerKieran Cawthray <kieranc@gmail.com>2021-07-12 11:01:11 (GMT)
commitdb99ac88d9b10a1a0f81291c171d5bafdf08fe0e (patch)
tree9bfa74096cff8a4f8cd08edbda01b7c0978b3bed /src/components/battery/BatteryController.h
parent2edf41be8eea79461a1f9b45a16d13f150c7e5d5 (diff)
parent4f378e8726fdcff72598aa6ed12eeaa6b3e61355 (diff)
Merge remote-tracking branch 'upstream/develop' into pinetimestyle-colorpicker
Diffstat (limited to 'src/components/battery/BatteryController.h')
-rw-r--r--src/components/battery/BatteryController.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/battery/BatteryController.h b/src/components/battery/BatteryController.h
index 04bcf6b..26e2493 100644
--- a/src/components/battery/BatteryController.h
+++ b/src/components/battery/BatteryController.h
@@ -50,7 +50,7 @@ namespace Pinetime {
return percentRemainingBuffer.GetAverage();
}
- float Voltage() const {
+ uint16_t Voltage() const {
return voltage;
}
@@ -71,7 +71,7 @@ namespace Pinetime {
static constexpr uint32_t chargingPin = 12;
static constexpr uint32_t powerPresentPin = 19;
static constexpr nrf_saadc_input_t batteryVoltageAdcInput = NRF_SAADC_INPUT_AIN7;
- float voltage = 0.0f;
+ uint16_t voltage = 0;
int percentRemaining = -1;
bool isCharging = false;
@@ -86,4 +86,4 @@ namespace Pinetime {
uint8_t samples = 0;
};
}
-} \ No newline at end of file
+}