Skip to content

Commit dea952d

Browse files
committed
Swap read_into to readinto for latest I2CDevice.
1 parent b01347b commit dea952d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_vl6180x.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def _read_8(self, address):
262262
address & 0xFF]),
263263
stop=False)
264264
result = bytearray(1)
265-
self._device.read_into(result)
265+
self._device.readinto(result)
266266
return result[0]
267267

268268
def _read_16(self, address):
@@ -273,5 +273,5 @@ def _read_16(self, address):
273273
address & 0xFF]),
274274
stop=False)
275275
result = bytearray(2)
276-
self._device.read_into(result)
276+
self._device.readinto(result)
277277
return (result[0] << 8) | result[1]

0 commit comments

Comments
 (0)