mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 10:31:02 +00:00
We didn't set BATT_FLAG_WANT_CHARGE in battery_get_params(), so battery command always shows 'charging not allowed'. Let's set the flag in the same condition as it is set in battery/smart.c. BUG=b:68027469 BRANCH=none TEST='battery' on EC console shows 'Charging: Allowed' Change-Id: Ifbdb6aee2572c8fc5f67103ca940738fb221ce5d Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/749025 Commit-Ready: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>