Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a55e566d authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Gerrit - the friendly Code Review server
Browse files

power: batterydata-lib: Use minimum slope if its value is <= 0



The OCV vs SOC slope cannot be <= 0. The VMBMS uses it for SOC
calculation and a zero slope can keep the SOC stuck at a value.

Fix this by reporting a minimum slope if its <= 0.

Change-Id: I8a4695c0ebf8200c96364598abe23e7ac3c401bd
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 425c7cfe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment