Browse Source

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

s/pressure/temperature/

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
pull/89798/head
Benjamin Cabé 3 weeks ago committed by Anas Nashif
parent
commit
af6209dbcb
  1. 2
      drivers/sensor/tdk/icp201xx/icp201xx_drv.c

2
drivers/sensor/tdk/icp201xx/icp201xx_drv.c

@ -232,7 +232,7 @@ static int icp201xx_channel_get(const struct device *dev, enum sensor_channel ch @@ -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);

Loading…
Cancel
Save