From 34c75ffb451358db37b72fa9122e2f008918202e Mon Sep 17 00:00:00 2001 From: Paul Szczeanek Date: Wed, 28 Oct 2020 08:42:58 +0000 Subject: [PATCH] fix wrong advertising set handle being passed to handler --- connectivity/FEATURE_BLE/source/generic/GapImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp b/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp index 70bfaf1aa3..8c3136a2ef 100644 --- a/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp +++ b/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp @@ -2863,7 +2863,7 @@ void Gap::on_advertising_set_started(const mbed::Span& handles) _adv_started_from_refresh.clear(handle); } else if (_event_handler) { _event_handler->onAdvertisingStart( - AdvertisingStartEvent(LEGACY_ADVERTISING_HANDLE) + AdvertisingStartEvent(handle) ); } }