Andreas Müller 95fc8b14b3 Correct integer types in BMP085 driver (#3070)
* BMP085 pressure sensor: fix temperature value data type

the data type for t (U_T) should be long according to the BMP085
datasheet (rev. 1.2, section 3.5). values over 32767 can indeed occur,
and in my case lead to a wrong value for the temperature (and
consequently also pressure).

note: this problem only occurs above a certain temperature (exact
value depends on the calibration, but I assume somewhere around 26°C).

* BMP085 pressure sensor: adapt data types and calculation

this adapts the data types and calculation to be consistent with the
datasheet (rev. 1.2, section 3.5). while I did not notice any issues,
using the wrong data types could trigger edge cases.
2020-06-09 22:26:52 +02:00
..
2019-05-08 14:08:20 +03:00
2020-06-09 22:26:06 +02:00
2019-07-23 18:47:18 +03:00
2020-06-09 22:26:06 +02:00
2019-07-23 18:47:18 +03:00
2020-06-09 22:26:06 +02:00
2020-06-09 22:26:06 +02:00
2020-06-09 22:26:06 +02:00
2019-05-08 14:08:20 +03:00
2019-07-23 18:47:18 +03:00
2019-05-08 14:08:20 +03:00
2019-05-08 14:08:20 +03:00
2019-07-23 18:47:18 +03:00
2020-06-09 22:26:06 +02:00
2020-06-09 22:26:06 +02:00
2019-05-08 14:08:20 +03:00
2020-06-09 22:26:06 +02:00
2019-05-08 14:08:20 +03:00
2019-05-08 14:08:20 +03:00
2019-05-08 14:08:20 +03:00
2019-07-23 18:47:18 +03:00
2019-07-27 14:20:26 +02:00
2020-06-09 22:26:06 +02:00
2019-05-08 14:08:20 +03:00
2019-07-23 18:47:18 +03:00
2019-05-08 14:08:20 +03:00
2020-06-09 22:26:06 +02:00
2019-05-08 14:08:20 +03:00
2019-06-22 12:47:14 +02:00
2020-06-09 22:26:06 +02:00
2019-05-08 14:08:20 +03:00
2019-07-23 18:47:18 +03:00
2019-07-23 18:47:18 +03:00
2020-06-09 22:26:06 +02:00
2019-05-08 14:08:20 +03:00