Skip to content

Commit f90ed13

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_mma8451.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _read_into(self, address, buf, count=None):
127127
count = len(buf)
128128
with self._device as i2c:
129129
i2c.write_then_readinto(bytes([address & 0xFF]), buf,
130-
in_end=count, stop=False)
130+
in_end=count)
131131

132132
def _read_u8(self, address):
133133
# Read an 8-bit unsigned value from the specified 8-bit address.

0 commit comments

Comments
 (0)