Openwear requires RC oscillator to be used

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
Rohit Grover
Date:
Tue Jul 08 11:15:50 2014 +0100
Parent:
38:dc4d0edf9bb9
Child:
40:1cb3707fa798
Commit message:
handle BLE_GATTS_EVT_SYS_ATTR_MISSING in nRFGattServer::hwCallback()

Changed in this revision

nRF51GattServer.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/nRF51GattServer.cpp	Tue Jul 08 11:15:11 2014 +0100
+++ b/nRF51GattServer.cpp	Tue Jul 08 11:15:50 2014 +0100
@@ -243,6 +243,10 @@
             handle_value = p_ble_evt->evt.gatts_evt.params.hvc.handle;
             break;
 
+        case BLE_GATTS_EVT_SYS_ATTR_MISSING:
+            sd_ble_gatts_sys_attr_set(p_ble_evt->evt.gatts_evt.conn_handle, NULL, 0);
+            return;
+
         default:
             return;
     }