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

swapping the order of values when writing baseline #5

Merged
merged 3 commits into from
Dec 2, 2018

Conversation

slim-bean
Copy link
Contributor

I was having some issues reading/writing the baseline values on my sgp30 and found a small bug. It looks like Sensirion reversed the order of values between reading and writing the baseline.

When reading you get co2 then tvoc, but when writing they want tvoc then co2.

This PR fixes the ordering of the set_baseline command.

@dbrgn
Copy link
Owner

dbrgn commented Dec 2, 2018

Oh, good catch! Thanks for the fix.

@dbrgn dbrgn merged commit 0f805c4 into dbrgn:master Dec 2, 2018
@dbrgn
Copy link
Owner

dbrgn commented Dec 2, 2018

Version 0.2.1 released.

@slim-bean
Copy link
Contributor Author

Thanks for the quick turnaround! And for the well written driver!

@dbrgn
Copy link
Owner

dbrgn commented Dec 2, 2018

Thanks for the quick turnaround! And for the well written driver!

Thanks 🙂

@abrauchli
Copy link

hi @slim-bean thanks for your interest! If you're curious as to why, the internal output is a stack (LIFO), but the input has to be processed on the fly. Swapping the output order would have taken up too much space - unfortunately we are that constrained.

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.

3 participants