Slightly tweak battery curve. 0% should be 3.65V now.
All checks were successful
Compile / Compile (push) Successful in 1m23s
All checks were successful
Compile / Compile (push) Successful in 1m23s
This commit is contained in:
parent
f28480291e
commit
93d7bde7dc
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ uint8_t WatchFeatures::Battery::GetPercentage()
|
|||
{
|
||||
float voltage = GetVoltage();
|
||||
|
||||
float level = (GetVoltage() - 3.6f) / 0.6f;
|
||||
float level = (GetVoltage() - 3.65f) / 0.55f;
|
||||
if (level < 0.0f) {
|
||||
level = 0.0f;
|
||||
} else if (level > 1.0f) {
|
||||
|
|
Loading…
Reference in a new issue