Nordic stack and drivers for the mbed BLE API. Version to work around build bug.

Dependents:   microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter

Fork of nRF51822 by Nordic Semiconductor

Revision:
451:87e7f14a3fa1
Parent:
450:e718f00626f2
Child:
453:38a41862ab4c
diff -r e718f00626f2 -r 87e7f14a3fa1 source/nRF5xGattServer.cpp
--- a/source/nRF5xGattServer.cpp	Mon Nov 02 09:05:09 2015 +0000
+++ b/source/nRF5xGattServer.cpp	Mon Nov 02 09:05:10 2015 +0000
@@ -62,10 +62,10 @@
 
     /* Add characteristics to the service */
     for (uint8_t i = 0; i < service.getCharacteristicCount(); i++) {
-		if (characteristicCount >= BLE_TOTAL_CHARACTERISTICS) {
-			return BLE_ERROR_NO_MEM;
-		}
-		GattCharacteristic *p_char = service.getCharacteristic(i);
+        if (characteristicCount >= BLE_TOTAL_CHARACTERISTICS) {
+            return BLE_ERROR_NO_MEM;
+        }
+        GattCharacteristic *p_char = service.getCharacteristic(i);
 
         /* Skip any incompletely defined, read-only characteristics. */
         if ((p_char->getValueAttribute().getValuePtr() == NULL) &&
@@ -111,11 +111,11 @@
 
         /* Add optional descriptors if any */
         for (uint8_t j = 0; j < p_char->getDescriptorCount(); j++) {
-    		if (descriptorCount >= BLE_TOTAL_DESCRIPTORS) {
-    			return BLE_ERROR_NO_MEM;
-    		}
+            if (descriptorCount >= BLE_TOTAL_DESCRIPTORS) {
+                return BLE_ERROR_NO_MEM;
+            }
 
-			GattAttribute *p_desc = p_char->getDescriptor(j);
+            GattAttribute *p_desc = p_char->getDescriptor(j);
             /* skip the user-description-descriptor here; this has already been handled when adding the characteristic (above). */
             if (p_desc->getUUID() == BLE_UUID_DESCRIPTOR_CHAR_USER_DESC) {
                 continue;