Remove stop kwarg and use write_then_readinto.
See https://github.com/adafruit/circuitpython/issues/2082 for details.
This commit is contained in:
parent
4e2e2f9738
commit
78425fc676
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ class ADT7410:
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue