summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/BatteryInfo.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2021-07-02 15:30:32 (GMT)
committerGitHub <noreply@github.com>2021-07-02 15:30:32 (GMT)
commit38f40034b0a200586429a3d8329479ad13d84d94 (patch)
tree77e96ee32a6a134f8e8c7945cd7d8b84c130063e /src/displayapp/screens/BatteryInfo.h
parent7075b7f264d1c5ae3a2b7d2fc26e1d0ad36b2616 (diff)
Float voltage to int (#444)
* Change voltage float to millivolt integer * Explain the ADC to milliVolts conversion
Diffstat (limited to 'src/displayapp/screens/BatteryInfo.h')
-rw-r--r--src/displayapp/screens/BatteryInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/BatteryInfo.h b/src/displayapp/screens/BatteryInfo.h
index 8805db5..346dc57 100644
--- a/src/displayapp/screens/BatteryInfo.h
+++ b/src/displayapp/screens/BatteryInfo.h
@@ -37,7 +37,7 @@ namespace Pinetime {
int8_t animation = 0;
int8_t batteryPercent = -1;
- float batteryVoltage = 0.0f;
+ uint16_t batteryVoltage = 0;
};
}
}