mirror of https://github.com/ARMmbed/mbed-os.git
only one connection event needed
parent
2cdff44f2a
commit
8cc580d986
|
@ -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() { }
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue