SparkFun_BME280_Arduino_Library
SparkFun_BME280_Arduino_Library copied to clipboard
firstly read temperature for avoiding wrong calculation
I have used the library and it was giving wrong altitude values because of not calling the readTempC() before calling readFloatAltitudeMeters(). Then I have called it and it has been fixed.
Thanks for the PR!
Does this method come from the datasheet? Why do you readFloatPressure twice?
Hmm, it looks like t_fine gets set in readTempC and is used in readFloatPressure.
It has fixed the wrong calculation. You can try it with or without my two-line containing commit. (it will probably give the wrong meter calculation without this commit)