Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firstly read temperature for avoiding wrong calculation #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

firstly read temperature for avoiding wrong calculation #51

wants to merge 2 commits into from

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)

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

Successfully merging this pull request may close these issues.

None yet

2 participants