Skip to content

Commit

Permalink
Remove stop kwarg and use write_then_readinto.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Aug 21, 2019
1 parent 4e2e2f9 commit 78425fc
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 78425fc

Please sign in to comment.