From 520e4f065aeee5421bd13679fdc2eda3e62d9226 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 21 Aug 2019 16:40:36 -0700 Subject: [PATCH] Remove stop kwarg and use write_then_readinto. See https://github.com/adafruit/circuitpython/issues/2082 for details. --- adafruit_ads1x15/ads1x15.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_ads1x15/ads1x15.py b/adafruit_ads1x15/ads1x15.py index 0f31f53..34b54fe 100644 --- a/adafruit_ads1x15/ads1x15.py +++ b/adafruit_ads1x15/ads1x15.py @@ -199,5 +199,5 @@ def _read_register(self, reg, fast=False): if fast: i2c.readinto(self.buf, end=2) else: - i2c.write_then_readinto(bytearray([reg]), self.buf, in_end=2, stop=False) + i2c.write_then_readinto(bytearray([reg]), self.buf, in_end=2) return self.buf[0] << 8 | self.buf[1]