Skip to content

Commit 7216ad0

Browse files
mrmcwethytannewt
authored andcommitted
changed read_into to readinto
1 parent bc7ec51 commit 7216ad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_si7021.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def init(self):
7979
data = bytearray([_READ_USER1])
8080
with self.i2c_device as i2c:
8181
i2c.write(data, stop=False)
82-
i2c.read_into(data)
82+
i2c.readinto(data)
8383
value = data[0]
8484
except OSError as e:
8585
if e.args[0] not in ('I2C bus error', 19): # errno 19 ENODEV
@@ -101,7 +101,7 @@ def _data(self):
101101
# While busy, the sensor doesn't respond to reads.
102102
try:
103103
with self.i2c_device as i2c:
104-
i2c.read_into(data)
104+
i2c.readinto(data)
105105
except OSError as e:
106106
if e.args[0] not in ('I2C bus error', 19): # errno 19 ENODEV
107107
raise

0 commit comments

Comments
 (0)