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)rxPhy;
|
||||||
}
|
}
|
||||||
|
|
||||||
void onEnhancedConnectionComplete(
|
void onConnectionComplete(
|
||||||
bool success,
|
bool success,
|
||||||
Handle_t connectionHandle,
|
Handle_t connectionHandle,
|
||||||
Role_t ownRole,
|
Role_t ownRole,
|
||||||
|
@ -1313,7 +1313,7 @@ public:
|
||||||
|
|
||||||
protected:
|
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.
|
* as the Gap class will never delete the instance it contains.
|
||||||
*/
|
*/
|
||||||
~EventHandler() { }
|
~EventHandler() { }
|
||||||
|
|
|
@ -2178,7 +2178,7 @@ void GenericGap::on_enhanced_connection_complete(
|
||||||
pal::clock_accuracy_t master_clock_accuracy
|
pal::clock_accuracy_t master_clock_accuracy
|
||||||
) {
|
) {
|
||||||
if (_eventHandler) {
|
if (_eventHandler) {
|
||||||
_eventHandler->onEnhancedConnectionComplete(
|
_eventHandler->onConnectionComplete(
|
||||||
(status==pal::hci_error_code_t::SUCCESS),
|
(status==pal::hci_error_code_t::SUCCESS),
|
||||||
(ble::connection_handle_t)connection_handle,
|
(ble::connection_handle_t)connection_handle,
|
||||||
(Gap::Role_t)own_role.value(),
|
(Gap::Role_t)own_role.value(),
|
||||||
|
|
Loading…
Reference in New Issue