diff options
author | Louis Yung-Chieh Lo <yjlou@chromium.org> | 2014-03-28 14:42:53 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-04-01 02:46:37 +0000 |
commit | 71766a39262b6ed4fec51cba19f10c6bec7e9f19 (patch) | |
tree | b95f11f41fce63376e3b2566ae926c2f00abc084 /include/charge_state_v2.h | |
parent | be17ca9d91d097f2ec742393e7c69928f46f1e17 (diff) | |
download | chrome-ec-71766a39262b6ed4fec51cba19f10c6bec7e9f19.tar.gz |
ectool: "temps all" lists nothing if no sensor connects to EC.
On some boards, the temperature sensor doesn't route to EC.
Thus the 'ectool temps all' would get "200" for every temp sensor.
This is misleading information.
So, check the EC_MEMMAP_THERMAL_VERSION before we dump. If it is 0,
then the temp data is not filled (and properly will not be filled).
BUG=chrome-os-partner:27460
BRANCH=all
TEST=Tested on big, which doesn't have sensor routed to EC.
Change-Id: I03e9736054ed602b7cc126e9fd958e0cecea79b4
Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/192149
Reviewed-by: Mao Huang <littlecvr@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/charge_state_v2.h')
0 files changed, 0 insertions, 0 deletions