commit | d5c7d0db5718cc1a6c17a1cde4d62a2368c0c2a9 | [log] [tgz] |
---|---|---|
author | Hui Peng <phui@google.com> | Wed Mar 22 13:26:04 2023 -0700 |
committer | Hui Peng <phui@google.com> | Thu Mar 23 08:57:10 2023 -0700 |
tree | f7e61f15bcd98449c5b5765474c36ce8202c1b76 | |
parent | b70ebdef73e03ef9288bc26510c27b31c7d7394d [diff] |
Fix a bug in HCI_Object.dict_from_bytes
diff --git a/bumble/hci.py b/bumble/hci.py index bcab7a7..083da81 100644 --- a/bumble/hci.py +++ b/bumble/hci.py
@@ -1491,7 +1491,7 @@ elif field_type == -2: # 16-bit signed field_value = struct.unpack_from('<h', data, offset)[0] - offset += 1 + offset += 2 elif field_type == 3: # 24-bit unsigned padded = data[offset : offset + 3] + bytes([0])