Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Diff: btle/btle.cpp
- Revision:
- 40:1cb3707fa798
- Parent:
- 37:c29c330d942c
- Child:
- 41:6e66cd970659
diff -r d52a28e1fa80 -r 1cb3707fa798 btle/btle.cpp --- a/btle/btle.cpp Tue Jul 08 11:15:50 2014 +0100 +++ b/btle/btle.cpp Thu Jul 10 11:29:44 2014 +0100 @@ -86,8 +86,7 @@ /* Custom event handler */ switch (p_ble_evt->header.evt_id) { case BLE_GAP_EVT_CONNECTED: - nRF51Gap::getInstance().setConnectionHandle( - p_ble_evt->evt.gap_evt.conn_handle ); + nRF51Gap::getInstance().setConnectionHandle(p_ble_evt->evt.gap_evt.conn_handle); nRF51Gap::getInstance().handleEvent(GapEvents::GAP_EVENT_CONNECTED); break; @@ -122,8 +121,7 @@ break; case BLE_GAP_EVT_TIMEOUT: - if (p_ble_evt->evt.gap_evt.params.timeout.src == - BLE_GAP_TIMEOUT_SRC_ADVERTISEMENT) { + if (p_ble_evt->evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_ADVERTISEMENT) { nRF51Gap::getInstance().handleEvent(GapEvents::GAP_EVENT_TIMEOUT); } break;