Goran Mahovlic / nRF51822_BLE_MIDI

Dependents:   BLE_MIDI

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Jun 19 15:55:25 2015 +0100
Parent:
270:3edb22234707
Child:
272:c918f8a73f3f
Commit message:
Synchronized with git rev 3a72e5cd
Author: Rohit Grover
pass 'role' to processConnectionEvent.

Changed in this revision

btle/btle.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/btle/btle.cpp	Fri Jun 19 15:55:25 2015 +0100
+++ b/btle/btle.cpp	Fri Jun 19 15:55:25 2015 +0100
@@ -116,6 +116,7 @@
             const ble_gap_addr_t *peer = &p_ble_evt->evt.gap_evt.params.connected.peer_addr;
             const ble_gap_addr_t *own  = &p_ble_evt->evt.gap_evt.params.connected.own_addr;
             nRF51Gap::getInstance().processConnectionEvent(handle,
+                                                           static_cast<Gap::Role_t>(p_ble_evt->evt.gap_evt.params.connected.role),
                                                            static_cast<Gap::AddressType_t>(peer->addr_type), peer->addr,
                                                            static_cast<Gap::AddressType_t>(own->addr_type),  own->addr,
                                                            params);