Adjust bluetooth matcher comments (#77409)
This commit is contained in:
parent
fcba6def49
commit
a6770f8b03
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ class BluetoothMatcherIndexBase(Generic[_T]):
|
||||||
likely to match. This allows us to only check the service infos
|
likely to match. This allows us to only check the service infos
|
||||||
against each bucket to see if we should match against the data.
|
against each bucket to see if we should match against the data.
|
||||||
|
|
||||||
This is optimized for cases were no service infos will be matched in
|
This is optimized for cases when no service infos will be matched in
|
||||||
any bucket and we can quickly reject the service info as not matching.
|
any bucket and we can quickly reject the service info as not matching.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -349,7 +349,7 @@ def ble_device_matches(
|
||||||
"""Check if a ble device and advertisement_data matches the matcher."""
|
"""Check if a ble device and advertisement_data matches the matcher."""
|
||||||
device = service_info.device
|
device = service_info.device
|
||||||
|
|
||||||
# Do don't check address here since all callers already
|
# Don't check address here since all callers already
|
||||||
# check the address and we don't want to double check
|
# check the address and we don't want to double check
|
||||||
# since it would result in an unreachable reject case.
|
# since it would result in an unreachable reject case.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue