summaryrefslogtreecommitdiff
path: root/include/temp_sensor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/temp_sensor.h')
-rw-r--r--include/temp_sensor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/temp_sensor.h b/include/temp_sensor.h
index 687618fa63..6ef71952bf 100644
--- a/include/temp_sensor.h
+++ b/include/temp_sensor.h
@@ -41,11 +41,13 @@ struct temp_sensor_t {
int action_delay_sec;
};
+#ifdef CONFIG_TEMP_SENSOR
/*
* Defined in board_temp_sensor.c. Must be in the same order as
* in enum temp_sensor_id.
*/
extern const struct temp_sensor_t temp_sensors[TEMP_SENSOR_COUNT];
+#endif
/**
* Get the most recently measured temperature for the sensor.