Float voltage to int (#444)

* Change voltage float to millivolt integer
* Explain the ADC to milliVolts conversion
This commit is contained in:
Riku Isokoski
2021-07-02 18:30:32 +03:00
committed by GitHub
parent 7075b7f264
commit 38f40034b0
5 changed files with 17 additions and 34 deletions

View File

@@ -37,7 +37,7 @@ namespace Pinetime {
int8_t animation = 0;
int8_t batteryPercent = -1;
float batteryVoltage = 0.0f;
uint16_t batteryVoltage = 0;
};
}
}