You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fwk: main: combine charger limit and battery extender
We have two functions to control the charger mode to save battery life,
combine two functions to avoid the race condition, we will all use sustainer_set.
when extender is not triggered yet, it will execute battery_percentage_control
after trigger uses battery_extender.
BRANCH=fwk-main
BUG=https://app.clickup.com/t/86eqxq8c1
TEST= verify on marigold, condition 1, set charger limit(70%) first and
trigger it to make sure percentage is down to 70%,
use cmd battextender timeext 3 m and battextender timeext2 4 m
check if stage 1 trigger percentage still keep at 70%
when stage 2 trigger also keep at 70%. (battery LED keep White)
TEST= verify on marigold, condition 2, after condition 1 setting charger limit(60%) again
after 5 Sec check battery start discharge and stop at 60%. (battery LED keep White)
TEST= verify on marigold, condition 3, disable charger limit(100%) check battextender will
set default range and star charging until trigger stage1(95-90) and stage2(87-85).
(battery LED will be charge LED(60%~95% amber), after trigger stage1 will be white)
Signed-off-by: LeoCX_Tsai <[email protected]>
(cherry picked from commit d18a2aaa230f0f59265983ab277e716d3558c67f)
0 commit comments