From d0986b2d95146181b3e365d3a777ad1ab6141970 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 21 Aug 2019 15:42:27 -0700 Subject: [PATCH] Remove stop kwarg and use write_then_readinto. See https://github.com/adafruit/circuitpython/issues/2082 for details. --- adafruit_mlx90393.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adafruit_mlx90393.py b/adafruit_mlx90393.py index a400ba8..a4bc265 100755 --- a/adafruit_mlx90393.py +++ b/adafruit_mlx90393.py @@ -157,9 +157,10 @@ def _transceive(self, payload, rxlen=0): if len(payload) == 1: # Transceive with repeated start with self.i2c_device as i2c: - i2c.write_then_readinto(payload, data, stop=False) + i2c.write_then_readinto(payload, data) else: # Write 'value' to the specified register + # TODO: Check this. It's weird that the write is accepted but the read is naked. with self.i2c_device as i2c: i2c.write(payload, stop=False)