Skip to content

Commit 09375de

Browse files
authored
Switch to latest bus device readinto method vs. read_into.
1 parent 578caeb commit 09375de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ina219.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def read_register(self, reg):
137137
buf[0] = reg
138138
with self.i2c_device as i2c:
139139
i2c.write(buf, end=1, stop=False)
140-
i2c.read_into(buf, start=1)
140+
i2c.readinto(buf, start=1)
141141

142142
value = (buf[1] << 8) | (buf[2])
143143
return value

0 commit comments

Comments
 (0)