drivers: sensors: tdk: icp201xx: fix typo in icp201xx_channel_get

s/pressure/temperature/

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-18 14:36:50 +02:00 committed by Anas Nashif
commit af6209dbcb

View file

@ -232,7 +232,7 @@ static int icp201xx_channel_get(const struct device *dev, enum sensor_channel ch
float pressure, temperature, altitude;
icp201xx_convert_pressure(&pressure_val, data->raw_pressure);
icp201xx_convert_temperature(&temp_val, data->raw_pressure);
icp201xx_convert_temperature(&temp_val, data->raw_temperature);
pressure = pressure_val.val1 + ((float)pressure_val.val2 / 1000000);
temperature = temp_val.val1 + ((float)temp_val.val2 / 1000000);
altitude = convertToHeight(pressure, temperature);