Skip to content

Commit

Permalink
changed read_into to readinto
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmcwethy authored and tannewt committed Nov 8, 2017
1 parent 2cabef1 commit 34e8b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_ds3231.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self, i2c):
buf[0] = 0x0e
with self.i2c_device as i2c:
i2c.write(buf, end=1, stop=False)
i2c.read_into(buf, start=1)
i2c.readinto(buf, start=1)

if (buf[1] & 0b00011000) != 0b00011000:
raise ValueError("Unable to find DS3231 at i2c address 0x68.")
Expand Down

0 comments on commit 34e8b72

Please sign in to comment.