diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2021-07-02 15:30:32 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-02 15:30:32 (GMT) |
| commit | 38f40034b0a200586429a3d8329479ad13d84d94 (patch) | |
| tree | 77e96ee32a6a134f8e8c7945cd7d8b84c130063e /src/displayapp/screens/BatteryInfo.h | |
| parent | 7075b7f264d1c5ae3a2b7d2fc26e1d0ad36b2616 (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.h | 2 |
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; }; } } |
