From 8cc580d986fcc498265502a51e69e862684ee3b9 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 12 Nov 2018 14:15:42 +0000 Subject: [PATCH] only one connection event needed --- features/FEATURE_BLE/ble/Gap.h | 4 ++-- features/FEATURE_BLE/source/generic/GenericGap.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/FEATURE_BLE/ble/Gap.h b/features/FEATURE_BLE/ble/Gap.h index 1e79ae4923..8604037d7c 100644 --- a/features/FEATURE_BLE/ble/Gap.h +++ b/features/FEATURE_BLE/ble/Gap.h @@ -1285,7 +1285,7 @@ public: (void)rxPhy; } - void onEnhancedConnectionComplete( + void onConnectionComplete( bool success, Handle_t connectionHandle, Role_t ownRole, @@ -1313,7 +1313,7 @@ public: protected: /** - * Prevent polymorphic deletion and avoid uncessery virtual destructor + * Prevent polymorphic deletion and avoid unnecessary virtual destructor * as the Gap class will never delete the instance it contains. */ ~EventHandler() { } diff --git a/features/FEATURE_BLE/source/generic/GenericGap.cpp b/features/FEATURE_BLE/source/generic/GenericGap.cpp index ed4229e937..7b6c584dd0 100644 --- a/features/FEATURE_BLE/source/generic/GenericGap.cpp +++ b/features/FEATURE_BLE/source/generic/GenericGap.cpp @@ -2178,7 +2178,7 @@ void GenericGap::on_enhanced_connection_complete( pal::clock_accuracy_t master_clock_accuracy ) { if (_eventHandler) { - _eventHandler->onEnhancedConnectionComplete( + _eventHandler->onConnectionComplete( (status==pal::hci_error_code_t::SUCCESS), (ble::connection_handle_t)connection_handle, (Gap::Role_t)own_role.value(),