Goran Mahovlic / nRF51822_BLE_MIDI

Dependents:   BLE_MIDI

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Nov 21 10:00:41 2014 +0000
Parent:
72:46db8d5c65d1
Child:
74:d453d7969553
Commit message:
Synchronized with git rev ec94c68e
Author: Rohit Grover
move descriptorCount into nRFGattServer

Changed in this revision

nRF51GattServer.h Show annotated file Show diff for this revision Revisions of this file
--- a/nRF51GattServer.h	Fri Nov 21 10:00:40 2014 +0000
+++ b/nRF51GattServer.h	Fri Nov 21 10:00:41 2014 +0000
@@ -44,10 +44,11 @@
     void hwCallback(ble_evt_t *p_ble_evt);
 
 private:
-    GattCharacteristic *p_characteristics[BLE_TOTAL_CHARACTERISTICS];
+    GattCharacteristic      *p_characteristics[BLE_TOTAL_CHARACTERISTICS];
     ble_gatts_char_handles_t nrfCharacteristicHandles[BLE_TOTAL_CHARACTERISTICS];
-    GattAttribute *p_descriptors[BLE_TOTAL_DESCRIPTORS];
-    uint16_t nrfDescriptorHandles[BLE_TOTAL_DESCRIPTORS];
+    GattAttribute           *p_descriptors[BLE_TOTAL_DESCRIPTORS];
+    uint8_t                  descriptorCount;
+    uint16_t                 nrfDescriptorHandles[BLE_TOTAL_DESCRIPTORS];
 
     nRF51GattServer() : GattServer(), p_characteristics(), nrfCharacteristicHandles(), p_descriptors(), descriptorCount(0), nrfDescriptorHandles() {
         /* empty */