Replying to: [PATCH] iio pressure: bmp280: Fix BMP580 temperature reading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Angel!

Indeed the datasheet says that the pressure is a signed value. But this comes
in contrast with 2 things:

1) The BMP58x sensor does not have a compensation function so the value from the
sensor is a pressure value just in different unit from the one reported by IIO.
And the sensor is able to report in between 30-125kPa according to the
datasheet which are both positive values so it makes more sense to be an
unsigned value.

2) According to the BMP5 sensor API [1] provided by Bosch, the pressure is
declared as an unsigned value.

So, what should we trust?

[1]: https://github.com/boschsensortec/BMP5_SensorAPI/blob/master/bmp5_defs.h#L895




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux