Skip to content

Commit

Permalink
Merge pull request #11 from tannewt/remove_stop
Browse files Browse the repository at this point in the history
Remove stop kwarg and use write_then_readinto.
  • Loading branch information
jerryneedell committed Aug 23, 2019
2 parents 0f1313c + d0986b2 commit 607867c
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 607867c

Please sign in to comment.