diff --git a/adafruit_sgp40.py b/adafruit_sgp40.py index a9ecf10..65ab39c 100644 --- a/adafruit_sgp40.py +++ b/adafruit_sgp40.py @@ -37,17 +37,10 @@ __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SGP40.git" _WORD_LEN = 2 + # no point in generating this each time -_READ_CMD = [ - 0x26, - 0x0F, - 0x80, - 0x00, - 0xA2, - 0x66, - 0x66, - 0x93, -] # Generated from temp 25c, humidity 50% +# Generated from temp 25c, humidity 50% +_READ_CMD = b"\x26\x0F\x80\x00\xA2\x66\x66\x93" class SGP40: