From f90ed133b9b5e5adb6fd54e68d2e114d0b0d6766 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 20 Aug 2019 22:20:06 -0700 Subject: [PATCH] Remove stop kwarg and use write_then_readinto. See https://github.com/adafruit/circuitpython/issues/2082 for details. --- adafruit_mma8451.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_mma8451.py b/adafruit_mma8451.py index a5c5256..74e87dc 100644 --- a/adafruit_mma8451.py +++ b/adafruit_mma8451.py @@ -127,7 +127,7 @@ def _read_into(self, address, buf, count=None): count = len(buf) with self._device as i2c: i2c.write_then_readinto(bytes([address & 0xFF]), buf, - in_end=count, stop=False) + in_end=count) def _read_u8(self, address): # Read an 8-bit unsigned value from the specified 8-bit address.