Skip to content

Commit 81a4e48

Browse files
committed
I2C read_bytes object path was incorrect after internal API change
1 parent 131a1d7 commit 81a4e48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

capablerobot_usbhub/i2c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def read_bytes(self, addr, number):
9494
# and add the start / stop flags
9595
cmd = build_value(addr=(addr<<1)+1)
9696

97-
return list(self.handle.ctrl_transfer(REQ_IN+1, self.CMD_I2C_READ, cmd, 0, number))
97+
return list(self.hub.handle.ctrl_transfer(REQ_IN+1, self.CMD_I2C_READ, cmd, 0, number))
9898

9999
def read_i2c_block_data(self, addr, register, number=32):
100100
"""Perform a read from the specified cmd register of device. Length number

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "capablerobot_usbhub"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
description = "Host side driver for the Capable Robot Programmable USB Hub"
55
authors = ["Chris Osterwood <osterwood@capablerobot.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)