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

Skip to content
Commit d2a60cfa authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Stephen Boyd
Browse files

power: qpnp-bms: calculate iavg more frequently



Currently, BMS will not recalculate iavg if it has already done a
soc calculation within the last 15 seconds. However, when battery
voltage is low or SoC is low, the BMS will recalculate soc faster.
When this happens, the iavg is effectively stuck, since it will never
be more than 15 seconds since the last SoC calculation.

Fix this by recalculating iavg if more than 2 seconds has passed
since the last soc calculation.

Change-Id: I661bf38e8369917a6cb6a83f4a30c4e06a6c3c53
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent ccfe5b82
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