From 8534124b1c43cbbca66b2e3c998a37825c2f53ed Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 21 Aug 2019 15:58:29 -0700 Subject: [PATCH] Remove stop kwarg and use write_then_readinto. See https://github.com/adafruit/circuitpython/issues/2082 for details. --- adafruit_fram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_fram.py b/adafruit_fram.py index e0e3c24..7ab0b2b 100755 --- a/adafruit_fram.py +++ b/adafruit_fram.py @@ -208,7 +208,7 @@ def __init__(self, i2c_bus, address=0x50, write_protect=False, read_buf = bytearray(3) with i2cdev(i2c_bus, dev_id_addr) as dev_id: dev_id.write_then_readinto(bytearray([(address << 1)]), - read_buf, stop=False) + read_buf) manf_id = (((read_buf[0] << 4) +(read_buf[1] >> 4))) prod_id = (((read_buf[1] & 0x0F) << 8) + read_buf[2]) if (manf_id != _I2C_MANF_ID) and (prod_id != _I2C_PROD_ID):