8000 Add constants for gas heat enable/disable · pimoroni/bme680-python@a9986c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a9986c1

Browse files
committed
Add constants for gas heat enable/disable
Since the logic is reversed and setting the heat_off bit to 1 disables the heater, these constants should avoid confusion.
1 parent 3772b5c commit a9986c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/bme680/constants.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@
121121
RUN_GAS_DISABLE = 0
122122
RUN_GAS_ENABLE = 1
123123

124+
# Gas heater enable and disable settings
125+
GAS_HEAT_ENABLE = 0
126+
GAS_HEAT_DISABLE = 1
127+
124128
# Buffer length macro declaration
125129
TMP_BUFFER_LENGTH = 40
126130
REG_BUFFER_LENGTH = 6

0 commit comments

Comments
 (0)
0