From 4ed3f5620f8389ae02acbcc25f9fd6e98adef449 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Thu, 29 Nov 2018 12:28:38 +0000 Subject: [PATCH] BLE: Fix name of DisconnectionEvent into DisconnectionCompleteEvent for consistency. --- features/FEATURE_BLE/ble/gap/Events.h | 4 ++-- features/FEATURE_BLE/ble/gap/Gap.h | 2 +- features/FEATURE_BLE/source/generic/GenericGap.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/features/FEATURE_BLE/ble/gap/Events.h b/features/FEATURE_BLE/ble/gap/Events.h index 3c09137517..d2987e123f 100644 --- a/features/FEATURE_BLE/ble/gap/Events.h +++ b/features/FEATURE_BLE/ble/gap/Events.h @@ -630,10 +630,10 @@ private: * * @see ble::Gap::EventHandler::onDisconnectionComplete(). */ -struct DisconnectionEvent { +struct DisconnectionCompleteEvent { #if !defined(DOXYGEN_ONLY) - DisconnectionEvent( + DisconnectionCompleteEvent( connection_handle_t connectionHandle, const disconnection_reason_t &reason ) : diff --git a/features/FEATURE_BLE/ble/gap/Gap.h b/features/FEATURE_BLE/ble/gap/Gap.h index 08842e05ae..4494dc50b4 100644 --- a/features/FEATURE_BLE/ble/gap/Gap.h +++ b/features/FEATURE_BLE/ble/gap/Gap.h @@ -427,7 +427,7 @@ public: * * @see disconnect() */ - virtual void onDisconnectionComplete(const DisconnectionEvent &event) + virtual void onDisconnectionComplete(const DisconnectionCompleteEvent &event) { } diff --git a/features/FEATURE_BLE/source/generic/GenericGap.cpp b/features/FEATURE_BLE/source/generic/GenericGap.cpp index 69824b691b..95a32e394b 100644 --- a/features/FEATURE_BLE/source/generic/GenericGap.cpp +++ b/features/FEATURE_BLE/source/generic/GenericGap.cpp @@ -1448,7 +1448,7 @@ void GenericGap::processDisconnectionEvent( if (_eventHandler) { _eventHandler->onDisconnectionComplete( - DisconnectionEvent( + DisconnectionCompleteEvent( handle, (disconnection_reason_t::type) reason )