Skip to content

Commit 75c296f

Browse files
committed
change to byte string
1 parent f9323e9 commit 75c296f

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

adafruit_sgp40.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,10 @@
3737
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SGP40.git"
3838

3939
_WORD_LEN = 2
40+
4041
# no point in generating this each time
41-
_READ_CMD = bytes(
42-
[
43-
0x26,
44-
0x0F,
45-
0x80,
46-
0x00,
47-
0xA2,
48-
0x66,
49-
0x66,
50-
0x93,
51-
]
52-
) # Generated from temp 25c, humidity 50%
42+
# Generated from temp 25c, humidity 50%
43+
_READ_CMD = b"\x26\x0F\x80\x00\xA2\x66\x66\x93"
5344

5445

5546
class SGP40:

0 commit comments

Comments
 (0)