Randall Spangler
40a1e7fa75
Cleanly force battery to mAh mode when reading capacity
...
Smart batteries can report capacity in mAh or 10mW units. We forced
the units to mAh in charge_state.c's main loop, but that doesn't
guarantee that they're actually set before the capacity is read. It's
cleaner to check the capacity reporting mode when actually reading the
capacity.
BUG=chrome-os-partner:20881
BRANCH=none
TEST=battery command reports the same capacity data before/after change
(on rambi, design=2940 mAh)
Change-Id: I4a4c80eaade72bb09627d5d65693c097e264a992
Signed-off-by: Randall Spangler <rspangler@chromium.org >
Reviewed-on: https://chromium-review.googlesource.com/176154
2013-12-02 22:03:54 +00:00
..
2013-10-25 20:12:54 +00:00
2013-11-07 23:42:56 +00:00
2013-09-27 23:07:21 +00:00
2013-11-05 22:45:21 +00:00
2013-12-02 22:03:54 +00:00
2013-04-05 14:28:42 -07:00
2013-12-02 22:03:51 +00:00
2013-09-05 07:20:13 +00:00
2013-09-23 21:26:29 +00:00
2013-10-21 21:10:36 +00:00
2013-10-21 23:59:38 +00:00
2013-11-21 04:30:55 +00:00
2013-04-29 11:05:08 -07:00
2013-11-21 22:21:56 +00:00
2013-10-15 00:27:14 +00:00
2013-09-10 23:46:07 +00:00
2013-11-21 22:21:34 +00:00
2013-11-21 22:21:34 +00:00
2013-10-25 20:12:49 +00:00
2012-10-26 09:49:38 -07:00
2013-08-23 10:38:57 -07:00
2013-11-02 01:07:10 +00:00
2013-08-28 01:54:48 +00:00
2013-11-02 01:07:16 +00:00
2013-06-03 14:32:38 -07:00
2013-11-23 05:11:31 +00:00
2013-10-08 20:41:32 +00:00
2013-10-02 01:24:40 +00:00
2013-06-26 09:08:23 -07:00
2013-03-20 15:23:29 -07:00
2013-10-07 16:20:59 +00:00
2012-11-04 20:27:57 -08:00
2013-10-21 23:59:38 +00:00
2013-04-25 17:03:18 -07:00
2013-06-18 10:31:09 -07:00
2013-10-30 23:10:13 +00:00
2013-03-27 11:35:20 -07:00
2013-04-24 16:32:58 -07:00
2013-04-24 16:32:58 -07:00
2013-03-22 11:24:29 -07:00
2013-08-07 12:43:48 -07:00
2013-04-02 14:12:57 -07:00
2012-04-26 13:57:19 -07:00
2012-09-11 09:46:16 -07:00
2013-09-17 03:22:12 +00:00
2012-11-04 20:27:57 -08:00
2011-12-07 19:10:02 +00:00
2013-11-21 22:21:56 +00:00
2012-10-25 14:12:11 -07:00
2013-11-07 22:35:56 +00:00
2012-11-01 12:45:22 -07:00
2013-07-23 11:14:16 -07:00
2012-08-13 14:58:38 -07:00
2013-04-25 17:03:18 -07:00
2013-04-24 16:32:58 -07:00
2012-10-25 14:12:10 -07:00
2013-10-30 23:10:10 +00:00
2012-06-07 20:48:51 -07:00
2012-10-25 17:03:44 -07:00
2012-08-09 17:40:37 -07:00
2012-09-17 10:10:14 -07:00
2013-07-17 10:49:48 -07:00
2013-11-05 02:32:40 +00:00
2013-05-07 09:09:50 -07:00
2013-07-24 14:05:17 -07:00
2013-10-23 21:27:40 +00:00
2013-08-23 10:38:36 -07:00
2013-09-27 04:33:33 +00:00
2013-08-23 10:38:36 -07:00
2013-10-23 23:53:23 +00:00
2013-11-21 00:09:09 +00:00
2013-10-21 23:59:38 +00:00
2013-05-02 18:10:46 -07:00
2013-09-11 19:45:38 +00:00
2012-12-10 15:14:38 -08:00
2013-07-19 18:01:55 -07:00
2013-06-10 13:59:34 -07:00
2013-07-11 16:51:40 -07:00