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
3 changes: 2 additions & 1 deletion adafruit_mlx90393.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,10 @@ def _transceive(self, payload, rxlen=0):
if len(payload) == 1:
# Transceive with repeated start
with self.i2c_device as i2c:
i2c.write_then_readinto(payload, data, stop=False)
i2c.write_then_readinto(payload, data)
else:
# Write 'value' to the specified register
# TODO: Check this. It's weird that the write is accepted but the read is naked.
with self.i2c_device as i2c:
i2c.write(payload, stop=False)

Expand Down