Skip to content

Conversation

emre-h
Copy link

@emre-h emre-h commented Aug 3, 2021

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.

@nseidle
Copy link
Member

nseidle commented Aug 4, 2021

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.

@emre-h
Copy link
Author

emre-h commented Aug 13, 2021

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)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants