Skip to content

Commit 19cec28

Browse files
committed
ble.pybricks: fix wrong return type
Fix wrong return type of unpack_hub_capabilities(). This was likely missed when we added a new field in Pybricks Profile v1.5.
1 parent 383ef08 commit 19cec28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybricksdev/ble/pybricks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ class UserProgramId(IntEnum):
351351
"""
352352

353353

354-
def unpack_hub_capabilities(data: bytes) -> Tuple[int, HubCapabilityFlag, int]:
354+
def unpack_hub_capabilities(data: bytes) -> Tuple[int, HubCapabilityFlag, int, int]:
355355
"""
356356
Unpacks the value read from the hub capabilities characteristic.
357357

0 commit comments

Comments
 (0)