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.
Dependents: BLE_iBeacon_Exercise
Fork of BLE_API_Native by
Diff: hw/nRF51822n/btle/btle.cpp
- Revision:
- 14:f3991f810e1b
- Parent:
- 8:b346eddb9346
--- a/hw/nRF51822n/btle/btle.cpp Thu Feb 20 11:12:32 2014 +0000
+++ b/hw/nRF51822n/btle/btle.cpp Thu Feb 20 16:31:09 2014 +0000
@@ -100,7 +100,7 @@
case BLE_GAP_EVT_DISCONNECTED:
// Since we are not in a connection and have not started advertising, store bonds
- nRF51GattServer::getInstance().m_connectionHandle = p_ble_evt->evt.gap_evt.conn_handle;
+ nRF51GattServer::getInstance().m_connectionHandle = BLE_CONN_HANDLE_INVALID;
ASSERT_STATUS_RET_VOID ( ble_bondmngr_bonded_centrals_store() );
nRF51Gap::getInstance().handleEvent(GapEvents::GAP_EVENT_DISCONNECTED);
break;
