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

Support for low/high gas variants #40

Merged
merged 1 commit into from May 11, 2021
Merged

Conversation

Gadgetoid
Copy link
Member

The BME688 is a "high" gas resistance variant of the BME680 and requires a slightly different init and gas compensation formula.

This change attempts to auto-detect the chip variant ID and do the right thing.

The constant ENABLE_GAS_MEAS is now set to -1 for back-compat, and passing this into set_gas_status will use the detected variant.

@coveralls
Copy link

coveralls commented May 10, 2021

Pull Request Test Coverage Report for Build 827858316

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 63 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-1.3%) to 84.369%

Files with Coverage Reduction New Missed Lines %
bme680/constants.py 1 99.61%
bme680/init.py 62 68.05%
Totals Coverage Status
Change from base Build 827600312: -1.3%
Covered Lines: 421
Relevant Lines: 499

💛 - Coveralls

The BME688 is a "high" gas resistance variant of the BME680 and requires a slightly different init and gas compensation formula.

This change attempts to auto-detect the chip variant ID and do the right thing.

The constant ENABLE_GAS_MEAS is now set to -1 for back-compat, and passing this into set_gas_status will use the detected variant.
@Gadgetoid Gadgetoid merged commit 3772b5c into master May 11, 2021
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