From 5740dcccbbea1ddc57e316ccd8febb496c61b390 Mon Sep 17 00:00:00 2001 From: Guogang Li Date: Fri, 2 Jun 2023 10:06:07 -0700 Subject: [PATCH] Fixed internal issues found in test PiperOrigin-RevId: 537340986 --- internal/platform/implementation/windows/ble_v2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/platform/implementation/windows/ble_v2.cc b/internal/platform/implementation/windows/ble_v2.cc index 31ec3f91..4e0d5d90 100644 --- a/internal/platform/implementation/windows/ble_v2.cc +++ b/internal/platform/implementation/windows/ble_v2.cc @@ -272,6 +272,8 @@ std::unique_ptr BleV2Medium::StartScanning( if (adapter_->IsExtendedAdvertisingSupported()) { watcher_.AllowExtendedAdvertisements(true); + } else { + watcher_.AllowExtendedAdvertisements(false); } // Active mode indicates that scan request packets will be sent to query @@ -954,8 +956,6 @@ void BleV2Medium::AdvertisementReceivedHandler( ble_advertisement_data.is_extended_advertisement = false; } else { ble_advertisement_data.is_extended_advertisement = true; - // test purpose - return; } ble_advertisement_data.service_data[service_uuid_] = advertisement_data;