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 )