File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments