Skip to content

Commit 607867c

Browse files
authored
Merge pull request #11 from tannewt/remove_stop
Remove stop kwarg and use write_then_readinto.
2 parents 0f1313c + d0986b2 commit 607867c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_mlx90393.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,10 @@ def _transceive(self, payload, rxlen=0):
157157
if len(payload) == 1:
158158
# Transceive with repeated start
159159
with self.i2c_device as i2c:
160-
i2c.write_then_readinto(payload, data, stop=False)
160+
i2c.write_then_readinto(payload, data)
161161
else:
162162
# Write 'value' to the specified register
163+
# TODO: Check this. It's weird that the write is accepted but the read is naked.
163164
with self.i2c_device as i2c:
164165
i2c.write(payload, stop=False)
165166

0 commit comments

Comments
 (0)