Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit ae1f7b9

Browse files
vamoiridjic23
authored andcommitted
iio: chemical: bme680: Fix pressure value output
The IIO standard units are measured in kPa while the driver is using hPa. Apart from checking the userspace value itself, it is mentioned also in the Bosch API [1] that the pressure value is in Pascal. [1]: https://github.com/boschsensortec/BME68x_SensorAPI/blob/v4.4.8/bme68x_defs.h#L742 Fixes: 1b3bd85 ("iio: chemical: Add support for Bosch BME680 sensor") Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com> Link: https://lore.kernel.org/r/20240606212313.207550-2-vassilisamir@gmail.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 9547d6a commit ae1f7b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/chemical/bme680_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ static int bme680_read_press(struct bme680_data *data,
678678
}
679679

680680
*val = bme680_compensate_press(data, adc_press);
681-
*val2 = 100;
681+
*val2 = 1000;
682682
return IIO_VAL_FRACTIONAL;
683683
}
684684

0 commit comments

Comments
 (0)