Skip to content

Commit

Permalink
pandora host: change AdvertisingType
Browse files Browse the repository at this point in the history
change advertising type from high duty to low duty

Test: python le_host_test.py -c config.yml --test_bed android.bumbles --tests "test_scan('connectable','non_scannable','directed',0)" -v
  • Loading branch information
SilverBzH committed Mar 20, 2024
1 parent 7d0b4ef commit a9c62c4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bumble/pandora/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,14 +486,10 @@ async def legacy_advertise(
target_bytes = bytes(reversed(request.target))
if request.target_variant() == "public":
target = Address(target_bytes, Address.PUBLIC_DEVICE_ADDRESS)
advertising_type = (
AdvertisingType.DIRECTED_CONNECTABLE_HIGH_DUTY
) # FIXME: HIGH_DUTY ?
advertising_type = AdvertisingType.DIRECTED_CONNECTABLE_LOW_DUTY
else:
target = Address(target_bytes, Address.RANDOM_DEVICE_ADDRESS)
advertising_type = (
AdvertisingType.DIRECTED_CONNECTABLE_HIGH_DUTY
) # FIXME: HIGH_DUTY ?
advertising_type = AdvertisingType.DIRECTED_CONNECTABLE_LOW_DUTY

if request.connectable:

Expand Down

0 comments on commit a9c62c4

Please sign in to comment.