Closed Gadgetoid closed 3 years ago
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
bme680/constants.py | 1 | 99.61% | ||
bme680/init.py | 62 | 68.05% | ||
<!-- | Total: | 63 | --> |
Totals | |
---|---|
Change from base Build 827600312: | -1.3% |
Covered Lines: | 421 |
Relevant Lines: | 499 |
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.