smart ball test board code

Dependencies:   nrf51-sdk

Fork of nRF51822 by Nordic Semiconductor

Revision:
272:208d78ccc9b7
Parent:
248:df37e7bb3f71
Child:
341:775dab2ff027
--- 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);