We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 796e0a1 commit 793537eCopy full SHA for 793537e
adafruit_bus_device/i2c_device.py
@@ -64,7 +64,7 @@ def __init__(self, i2c, device_address):
64
while not i2c.try_lock():
65
pass
66
try:
67
- result = bytearray(2)
+ result = bytearray(1)
68
i2c.readfrom_into(device_address, result)
69
except OSError:
70
raise ValueError("No I2C device at address: %x" % device_address)
0 commit comments