Skip to content

Commit

Permalink
Merge pull request #3 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 authored Aug 23, 2019
2 parents 4e2e2f9 + 78425fc commit 4d84d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_adt7410.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _read_register(self, addr, num=1):
self._buf[0] = addr
with self.i2c_device as i2c:
i2c.write_then_readinto(self._buf, self._buf, out_end=1,
in_start=1, in_end=num+1, stop=False)
in_start=1, in_end=num+1)
return self._buf[1:num+1]

def _write_register(self, addr, data=None):
Expand Down

0 comments on commit 4d84d8a

Please sign in to comment.