summaryrefslogtreecommitdiff
path: root/common/temp_sensor.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-11 11:21:00 -0700
committerGerrit <chrome-bot@google.com>2012-10-11 14:24:40 -0700
commit23fe5ed867b2811a84171755137021608dda5777 (patch)
treeccff2ade4feb00e18ea4f10ff76634f11f8d8db7 /common/temp_sensor.c
parent22e03a1de6d525e84e511f4b25531caf6f1a93fd (diff)
downloadchrome-ec-23fe5ed867b2811a84171755137021608dda5777.tar.gz
link: Added sensor-not-calibrated error for TMP006
BUG=chrome-os-partner:15174 BRANCH=link TEST=manual, from root shell - ectool temps all -> prints all temps - ectool tmp006cal 1 0 0 0 0 - ectool temps all -> sensor 3 not calibrated Change-Id: I16ee818c948fe90ac7c18b230c5d9f9a0ec83ded Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/35288 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/temp_sensor.c')
-rw-r--r--common/temp_sensor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/temp_sensor.c b/common/temp_sensor.c
index ee1299f78d..799f4f609e 100644
--- a/common/temp_sensor.c
+++ b/common/temp_sensor.c
@@ -75,6 +75,9 @@ static void update_mapped_memory(void)
case EC_ERROR_NOT_POWERED:
*mptr = EC_TEMP_SENSOR_NOT_POWERED;
break;
+ case EC_ERROR_NOT_CALIBRATED:
+ *mptr = EC_TEMP_SENSOR_NOT_CALIBRATED;
+ break;
case EC_SUCCESS:
*mptr = t - EC_TEMP_SENSOR_OFFSET;
break;