+21
−11
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Set the correct bit(7) to enable BMS.
While at it, reject the OCV if it is < 2V. This is to handle the
runtime battery-swap usecase where the BMS is disabled and re-enabled
to clear old data. In such a case OCV_DATA is reset to 0, which messes
the SOC calculation.
Change-Id: I83c21d0aca45eeaa3fd4587174bb597883fd445a
Signed-off-by:
Anirudh Ghayal <aghayal@codeaurora.org>