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

Commit 283ac95f authored by Chao Chen's avatar Chao Chen Committed by Bernhard Thoben
Browse files

drivers:power: Fix the soc update delay



The soc value is the fg controller is 0-255. Reported soc is 0-100.
Current delta-soc = 255/100 = 3. That will skip some soc point.

I do have my doubts about this patch, but the charger code is spaghetti
and a bit hard to understand what does what and when.

Change-Id: I72b62fc8943322f31da6220e7401d6d9854314f7

Signed-off-by: default avatarFrancisco Franco <franciscofranco.1990@gmail.com>
(cherry picked from commit 2d507ba0f77f425188e04d7adcaab95a16dfeea7)
parent b7f8383b
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