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:
parent
e6bd3b4f3e
commit
af6209dbcb
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue