Files
OpenCellular/include
Bill Richardson d64de2bb1b Show smart battery status with 'battery' command
The smart battery status register holds some useful info. This displays it
along with all the other stuff.

This decodes the alarm and status bits, but not the error code, since that
field is only valid immediately after a failed i2c transaction (that's how
the battery indicates error). Since we do all sorts of automatic battery
probing in other threads, that value will never be reliable when we run the
"battery" console command.

BUG=none
BRANCH=none
TEST=manual

Run "battery". You should see a new line amongst the output:

  Status:    0x00c0 DCHG INIT

Change-Id: I5e684198af2cf7767f89786c91a7d946ad95d4c2
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/175659
2013-11-05 22:45:21 +00:00
..
2013-10-25 20:12:54 +00:00
2013-04-05 14:28:42 -07:00
2013-10-25 01:32:21 +00:00
2013-10-15 00:27:14 +00:00
2013-09-10 23:46:07 +00:00
2013-10-31 21:57:29 +00:00
2013-10-25 20:12:49 +00:00
2012-10-26 09:49:38 -07:00
2013-10-21 23:59:38 +00:00
2013-10-08 20:41:32 +00:00
2013-06-26 09:08:23 -07:00
2013-10-21 23:59:38 +00:00
2013-06-18 10:31:09 -07:00
2013-10-30 23:10:13 +00:00
2013-08-07 12:43:48 -07:00
2012-11-04 20:27:57 -08:00
2011-12-07 19:10:02 +00:00
2012-10-25 14:12:11 -07:00
2013-07-10 11:16:18 -07:00
2012-10-25 14:12:10 -07:00
2013-10-30 23:10:10 +00:00
2012-10-25 17:03:44 -07:00
2012-08-09 17:40:37 -07:00
2013-07-24 14:05:17 -07:00
2012-10-29 16:52:49 -07:00
2013-10-21 23:59:38 +00:00