Skip to content

Commit

Permalink
Add constants for gas heat enable/disable
Browse files Browse the repository at this point in the history
Since the logic is reversed and setting the heat_off bit to 1 disables the heater, these constants should avoid confusion.
  • Loading branch information
Gadgetoid committed May 11, 2021
1 parent 3772b5c commit a9986c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/bme680/constants.py
Expand Up @@ -121,6 +121,10 @@
RUN_GAS_DISABLE = 0
RUN_GAS_ENABLE = 1

# Gas heater enable and disable settings
GAS_HEAT_ENABLE = 0
GAS_HEAT_DISABLE = 1

# Buffer length macro declaration
TMP_BUFFER_LENGTH = 40
REG_BUFFER_LENGTH = 6
Expand Down

0 comments on commit a9986c1

Please sign in to comment.