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

Fix reassignment of variable in pressure calculation algo #5

Merged
merged 1 commit into from
Nov 22, 2017

Conversation

gkluoe
Copy link
Contributor

@gkluoe gkluoe commented Nov 21, 2017

Found it! I'm not 100% sure what's going on here, but I think the problem is that you reassigned var1 but the last part of the calculation relied on its original value.

With this patch I get matching values from the C and the Python.

@jorisvervuurt
Copy link

jorisvervuurt commented Nov 21, 2017

Nice! I'll run a test tomorrow.

@Gadgetoid
Copy link
Member

@gkluoe you are my favourite person right now.

You'll never believe it, but I was looking into this yesterday and was having a hard enough time finding a BME680 that even works. Apparently we've sold or hoarded them all somewhere.

@jorisvervuurt if you confirm this works, and the Python 2/3 issues are squashed then I'll push out a new release ASAP.

@Gadgetoid Gadgetoid self-assigned this Nov 22, 2017
@Gadgetoid Gadgetoid added this to the v1.0.3 milestone Nov 22, 2017
@jorisvervuurt
Copy link

Before installing the fixed version, pressure was measured to be ~1018 hPa while it should measure ~1006 hPa. After installing the fixed version, it measures ~1004 hPa and it now also works in Python 3.

I think it's safe to say that @gkluoe has fixed the problem!

@Gadgetoid Gadgetoid merged commit c9d4cef into pimoroni:master Nov 22, 2017
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

3 participants