Files
OpenCellular/common
Nicolas Boichat 97e8dfa8d9 charge_state_v2: Add debugging command for dual-battery algo
chgdualdebug allows to force the dual-battery charging algorithm
to take certain decisions.

On AC, `chgdualdebug c <current>` allocates up to `<current>` to
the base, capped at the total current available from the adapter
(`chgdualdebug c auto` re-enables the algorithm).

When no AC is connected, `chgdualdebug d <current>` set the
current to transfer from lid to base (negative to transfer from
base to lid).

BRANCH=none
BUG=b:71881017
TEST=Try the commands above, see that they do what they advertise.

Change-Id: I98ee60eadd8f9202c1d489d9fca63267c32e8178
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/958811
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2018-03-28 19:34:15 -07:00
..
2017-12-28 14:50:29 -08:00
2018-02-05 23:05:39 -08:00
2015-05-19 02:46:27 +00:00
2018-01-10 12:58:55 -08:00
2016-11-15 17:41:53 -08:00
2017-12-28 12:35:08 -08:00
2017-09-11 11:14:24 -07:00
2016-03-02 13:39:47 -08:00
2017-06-02 10:38:57 -07:00
2017-10-31 13:04:59 -07:00
2018-03-20 19:30:06 -07:00
2014-05-17 20:14:17 +00:00
2018-03-01 12:39:05 -08:00
2016-03-21 16:35:33 -07:00
2017-05-09 23:20:07 -07:00
2017-11-06 13:48:38 -08:00
2017-08-10 22:47:24 -07:00
2017-12-18 20:32:58 -08:00
2017-12-18 20:32:58 -08:00
2018-03-20 19:30:17 -07:00
2017-09-22 10:18:50 -07:00