only one connection event needed

pull/8738/head
paul-szczepanek-arm 2018-11-12 14:15:42 +00:00 committed by Vincent Coubard
parent 2cdff44f2a
commit 8cc580d986
2 changed files with 3 additions and 3 deletions

View File

@ -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() { }

View File

@ -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(),