Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adafruit_max31856.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class MAX31856:

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

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