From a9c62c44b32d18edcb3727c6194f69e30ef88a45 Mon Sep 17 00:00:00 2001 From: Charlie Boutier Date: Tue, 19 Mar 2024 23:09:28 +0000 Subject: [PATCH] pandora host: change AdvertisingType 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 --- bumble/pandora/host.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bumble/pandora/host.py b/bumble/pandora/host.py index f44e7364..e54d2d57 100644 --- a/bumble/pandora/host.py +++ b/bumble/pandora/host.py @@ -486,14 +486,10 @@ class HostService(HostServicer): 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: