diff options
Diffstat (limited to 'common/temp_sensor.c')
-rw-r--r-- | common/temp_sensor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/temp_sensor.c b/common/temp_sensor.c index 55101a5345..69d440a6d5 100644 --- a/common/temp_sensor.c +++ b/common/temp_sensor.c @@ -27,7 +27,11 @@ int temp_sensor_read(enum temp_sensor_id id, int *temp_ptr) return EC_ERROR_INVAL; sensor = temp_sensors + id; +#ifdef CONFIG_ZEPHYR + return sensor->read(sensor, temp_ptr); +#else return sensor->read(sensor->idx, temp_ptr); +#endif } static void update_mapped_memory(void) |