google_ttf: check whole data before return the calculated result
add check cc[soc + 1] case before calculating delta_cc. ttf will
trigger update when unplug at "ttf_soc_update": if I unplug at 95%,
it will update from start to 94% however, when we calculate
"ttf_pwr_avg_cc" => it use cc[soc + 1] - cc[soc]
Bug: 163087907
Signed-off-by: Jenny Ho <[email protected]>
Change-Id: Ic06808b809bf68f24f8909b61b5c9e8aad54413f
Signed-off-by: Ken Tsou <[email protected]>
(cherry picked from commit 5fbde1a24857d3d4703af2eb168f0c1e42841239)
1 file changed