From a9986c1e73a6b72a2b9acc935df1f17d5b90fa51 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Tue, 11 May 2021 10:21:04 +0100 Subject: [PATCH] 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. --- library/bme680/constants.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/bme680/constants.py b/library/bme680/constants.py index 0ae7a94..78b4b30 100644 --- a/library/bme680/constants.py +++ b/library/bme680/constants.py @@ -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