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

Commit 6401d734 authored by Sahil Chandna's avatar Sahil Chandna Committed by Subbaraman Narayanamurthy
Browse files

power: fg-alg: Fix TTF calculation to converge to correct TTF faster



When charger is plugged in, initial TTF value can be incorrect if
Ibatt value is not settled. Fix this by clearing ibatt samples buffer
once the current Ibatt reading differs by 500 mA with the Ibatt_avg,
to converge to accurate TTF value.

Change-Id: Id3c8d227d575200d25ffbb5c314877ce4fe99d73
Signed-off-by: default avatarSahil Chandna <chandna@codeaurora.org>
parent 3797ea57
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