Skip to content

Commit 4ed3f56

Browse files
committed
BLE: Fix name of DisconnectionEvent into DisconnectionCompleteEvent for consistency.
1 parent 3ddcdf2 commit 4ed3f56

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

features/FEATURE_BLE/ble/gap/Events.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,10 +630,10 @@ struct ScanRequestEvent {
630630
*
631631
* @see ble::Gap::EventHandler::onDisconnectionComplete().
632632
*/
633-
struct DisconnectionEvent {
633+
struct DisconnectionCompleteEvent {
634634
#if !defined(DOXYGEN_ONLY)
635635

636-
DisconnectionEvent(
636+
DisconnectionCompleteEvent(
637637
connection_handle_t connectionHandle,
638638
const disconnection_reason_t &reason
639639
) :

features/FEATURE_BLE/ble/gap/Gap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ class Gap {
427427
*
428428
* @see disconnect()
429429
*/
430-
virtual void onDisconnectionComplete(const DisconnectionEvent &event)
430+
virtual void onDisconnectionComplete(const DisconnectionCompleteEvent &event)
431431
{
432432
}
433433

features/FEATURE_BLE/source/generic/GenericGap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ void GenericGap::processDisconnectionEvent(
14481448

14491449
if (_eventHandler) {
14501450
_eventHandler->onDisconnectionComplete(
1451-
DisconnectionEvent(
1451+
DisconnectionCompleteEvent(
14521452
handle,
14531453
(disconnection_reason_t::type) reason
14541454
)

0 commit comments

Comments
 (0)