Skip to content

Commit 4ea820c

Browse files
pre-commit-ci[bot]bluetoothbot
authored andcommitted
chore(pre-commit.ci): auto fixes
1 parent 73113e2 commit 4ea820c

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

  • src/bluetooth_data_tools

src/bluetooth_data_tools/gap.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,7 @@ def _uncached_parse_advertisement_bytes(
276276
uuid32_b2 = gap_data[i + 2]
277277
uuid32_b3 = gap_data[i + 3]
278278
uuid32_int = (
279-
uuid32_b0
280-
| (uuid32_b1 << 8)
281-
| (uuid32_b2 << 16)
282-
| (uuid32_b3 << 24)
279+
uuid32_b0 | (uuid32_b1 << 8) | (uuid32_b2 << 16) | (uuid32_b3 << 24)
283280
)
284281
service_uuids.append(_cached_uint32_int_as_uuid(uuid32_int))
285282
elif gap_type_num in {
@@ -320,10 +317,7 @@ def _uncached_parse_advertisement_bytes(
320317
uuid32_b2 = gap_data[start + 2]
321318
uuid32_b3 = gap_data[start + 3]
322319
uuid32_int = (
323-
uuid32_b0
324-
| (uuid32_b1 << 8)
325-
| (uuid32_b2 << 16)
326-
| (uuid32_b3 << 24)
320+
uuid32_b0 | (uuid32_b1 << 8) | (uuid32_b2 << 16) | (uuid32_b3 << 24)
327321
)
328322
service_data[_cached_uint32_int_as_uuid(uuid32_int)] = gap_data[
329323
splice_pos:end

0 commit comments

Comments
 (0)