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

Skip to content
Commit 24b7273e authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: fg-alg: Show last TTF while clearing Ibatt samples



Currently, when the battery current (Ibatt) changes by more than
500 mA, TTF algorithm clears Ibatt samples so that Ibatt average
can be obtained with fresh set of samples. This was done to
improve TTF accuracy. However, while doing it TTF shown to the
user is shown as -1 because collecting Ibatt samples would take
few seconds. Fix this by showing last TTF to the user when Ibatt
samples are cleared until new set of Ibatt samples are obtained.

Change-Id: Ifba1d399f38893dd544be2369f600a7400530e64
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 13f67f99
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