Skip to content

Commit 5ce2728

Browse files
committed
fixes #4 caused by CP's liberal unpack
1 parent ad069c0 commit 5ce2728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_max31856.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class MAX31856:
132132

133133
# A class level buffer to reduce allocations for reading and writing.
134134
# Tony says this isn't re-entrant or thread safe!
135-
_BUFFER = bytearray(3)
135+
_BUFFER = bytearray(4)
136136

137137
def __init__(self, spi, cs, thermocouple_type=ThermocoupleType.K):
138138
self._device = SPIDevice(spi, cs, baudrate=500000, polarity=0, phase=1)

0 commit comments

Comments
 (0)