Skip to content

Commit a266e8d

Browse files
committed
Remove stop kwarg and use write_then_readinto.
See adafruit/circuitpython#2082 for details.
1 parent c9409f5 commit a266e8d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_mpr121.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ def _read_register_bytes(self, register, result, length=None):
162162
if length is None:
163163
length = len(result)
164164
with self._i2c:
165-
self._i2c.write_then_readinto(bytes([register]), result,
166-
in_end=length, stop=False)
165+
self._i2c.write_then_readinto(bytes([register]), result, in_end=length)
167166

168167
def reset(self):
169168
"""Reset the MPR121 into a default state ready to detect touch inputs.

0 commit comments

Comments
 (0)