Fixes incorrect calibration readings which causes the pressure readings to be inaccurate (Fixes #1). The cause was the calibration values not properly being read as signed/unsigned as required [^1].
Tested on my component and results with this PR match results from the Arduino library. (Tested on RPi, compared to RedBoard Arduino)
Hope this helps :)
[^1]: BME280 datasheet p. 24 for reference of the data types of each of the calibration values.
Fixes incorrect calibration readings which causes the pressure readings to be inaccurate (Fixes #1). The cause was the calibration values not properly being read as signed/unsigned as required [^1].
Tested on my component and results with this PR match results from the Arduino library. (Tested on RPi, compared to RedBoard Arduino)
Hope this helps :)
[^1]: BME280 datasheet p. 24 for reference of the data types of each of the calibration values.