Originally from Donal's blog article. http://mbed.org/users/donalm/code/BLE_Health_Thermometer_Blog/ Changed low freq. clock source from XTAL to IRC.

Dependents:   BLE_Health_Thermometer_IRC BLE_RCBController_micono_test BLE_konashi_PIO_test BLE_ADT7410_TMP102_Sample ... more

Fork of BLE_API_Native_blog by Donal Morrissey

Files at this revision

API Documentation at this revision

Comitter:
ktownsend
Date:
Thu Feb 20 16:31:09 2014 +0000
Parent:
13:1800682b5703
Child:
15:a854d49b3d25
Commit message:
Fixed bug in disconnect event handler

Changed in this revision

hw/nRF51822n/btle/btle.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;