Slightly tweak battery curve. 0% should be 3.65V now.
All checks were successful
Compile / Compile (push) Successful in 1m23s

This commit is contained in:
leblane 2023-06-15 19:46:04 +03:00
parent f28480291e
commit 93d7bde7dc

View file

@ -27,7 +27,7 @@ uint8_t WatchFeatures::Battery::GetPercentage()
{ {
float voltage = GetVoltage(); float voltage = GetVoltage();
float level = (GetVoltage() - 3.6f) / 0.6f; float level = (GetVoltage() - 3.65f) / 0.55f;
if (level < 0.0f) { if (level < 0.0f) {
level = 0.0f; level = 0.0f;
} else if (level > 1.0f) { } else if (level > 1.0f) {