Skip to content

Commit f9323e9

Browse files
committed
convert _READ_CMD to bytes
1 parent c627e60 commit f9323e9

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

adafruit_sgp40.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,18 @@
3838

3939
_WORD_LEN = 2
4040
# no point in generating this each time
41-
_READ_CMD = [
42-
0x26,
43-
0x0F,
44-
0x80,
45-
0x00,
46-
0xA2,
47-
0x66,
48-
0x66,
49-
0x93,
50-
] # Generated from temp 25c, humidity 50%
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%
5153

5254

5355
class SGP40:

0 commit comments

Comments
 (0)