Skip to content

Commit 859405c

Browse files
authored
Merge pull request #10 from tannewt/remove_stop
Remove stop kwarg and use write_then_readinto.
2 parents d49b7bf + 8534124 commit 859405c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_fram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __init__(self, i2c_bus, address=0x50, write_protect=False,
208208
read_buf = bytearray(3)
209209
with i2cdev(i2c_bus, dev_id_addr) as dev_id:
210210
dev_id.write_then_readinto(bytearray([(address << 1)]),
211-
read_buf, stop=False)
211+
read_buf)
212212
manf_id = (((read_buf[0] << 4) +(read_buf[1] >> 4)))
213213
prod_id = (((read_buf[1] & 0x0F) << 8) + read_buf[2])
214214
if (manf_id != _I2C_MANF_ID) and (prod_id != _I2C_PROD_ID):

0 commit comments

Comments
 (0)