summaryrefslogtreecommitdiff
path: root/common/tmp006.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/tmp006.c')
-rw-r--r--common/tmp006.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/tmp006.c b/common/tmp006.c
index d7407397a7..93d4d8c0de 100644
--- a/common/tmp006.c
+++ b/common/tmp006.c
@@ -135,6 +135,9 @@ static int tmp006_read_object_temp(const struct tmp006_data_t *tdata,
if (tdata->fail)
return EC_ERROR_UNKNOWN;
+ if (!tdata->s0)
+ return EC_ERROR_NOT_CALIBRATED;
+
v = tmp006_correct_object_voltage(
t,
tdata->t[(pidx + 3) & 3],