test
Fork of nRF51822 by
Diff: btle/btle.cpp
- Revision:
- 340:775dab2ff027
- Parent:
- 271:208d78ccc9b7
- Child:
- 344:2a44e5fd26bc
diff -r e5e2157e8b44 -r 775dab2ff027 btle/btle.cpp --- a/btle/btle.cpp Fri Jun 19 15:55:33 2015 +0100 +++ b/btle/btle.cpp Fri Jun 19 15:55:33 2015 +0100 @@ -36,7 +36,6 @@ #include "device_manager.h" #include "ble_hci.h" -#include "btle_discovery.h" extern "C" void assert_nrf_callback(uint16_t line_num, const uint8_t *p_file_name); void app_error_handler(uint32_t error_code, uint32_t line_num, const uint8_t *p_file_name); @@ -105,8 +104,6 @@ dm_ble_evt_handler(p_ble_evt); - bleGattcEventHandler(p_ble_evt); - /* Custom event handler */ switch (p_ble_evt->header.evt_id) { case BLE_GAP_EVT_CONNECTED: { @@ -116,7 +113,6 @@ 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);