+165
−16
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Cycle counter provides the number of times battery has been
charged between the specified thresholds. Counter gets
incremented only on the following conditions.
When the battery starts charging and the battery SOC is below the
specified low SOC threshold, counting algorithm starts. When the
battery continues charging and the battery SOC reaches above the
specified high SOC threshold, counter will be incremented.
If the charger is disconnected before the battery SOC threshold
reaches high SOC or the charging happens between low and high SOC
thresholds, counter will not get incremented. Also, the counter
stored in the fuel gauge SRAM will be cleared in the event of
battery removal.
Cycle counter is exposed through the cycle_count property.
CRs-Fixed: 791933
Change-Id: I7667ca3d853618ff9e5dada76739da5730a8a067
Signed-off-by:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>