Skip to content

Commit c7bc34d

Browse files
authored
Merge branch 'adafruit:main' into main
2 parents 7cca585 + 5c1e198 commit c7bc34d

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

adafruit_sgp40.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -548,17 +548,10 @@ def _vocalgorithm__adaptive_lowpass__process(self, sample):
548548
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SGP40.git"
549549

550550
_WORD_LEN = 2
551+
551552
# no point in generating this each time
552-
_READ_CMD = [
553-
0x26,
554-
0x0F,
555-
0x80,
556-
0x00,
557-
0xA2,
558-
0x66,
559-
0x66,
560-
0x93,
561-
] # Generated from temp 25c, humidity 50%
553+
# Generated from temp 25c, humidity 50%
554+
_READ_CMD = b"\x26\x0F\x80\x00\xA2\x66\x66\x93"
562555

563556

564557
class SGP40:

0 commit comments

Comments
 (0)