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

Skip to content
Commit c4f8ab88 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: vm-bms: Fix a bug while re-enabling BMS



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: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 3163350d
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