Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Thu Apr 30 08:34:38 2015 +0100
Parent:
117:dbc5d7f0fdd5
Child:
119:3ba3e377b972
Commit message:
Synchronized with git rev ece3b856
Author: Rohit Grover
white space diffs.

Changed in this revision

nRF51GattServer.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/nRF51GattServer.cpp	Thu Apr 30 08:34:38 2015 +0100
+++ b/nRF51GattServer.cpp	Thu Apr 30 08:34:38 2015 +0100
@@ -90,18 +90,18 @@
         /* Add optional descriptors if any */
         /* ToDo: Make sure we don't overflow the array */
         for (uint8_t j = 0; j < p_char->getDescriptorCount(); j++) {
-             GattAttribute *p_desc = p_char->getDescriptor(j);
+            GattAttribute *p_desc = p_char->getDescriptor(j);
 
-             nordicUUID = custom_convert_to_nordic_uuid(p_desc->getUUID());
+            nordicUUID = custom_convert_to_nordic_uuid(p_desc->getUUID());
 
-             ASSERT ( ERROR_NONE ==
-                      custom_add_in_descriptor(BLE_GATT_HANDLE_INVALID,
-                                               &nordicUUID,
-                                               p_desc->getValuePtr(),
-                                               p_desc->getInitialLength(),
-                                               p_desc->getMaxLength(),
-                                               &nrfDescriptorHandles[descriptorCount]),
-                 BLE_ERROR_PARAM_OUT_OF_RANGE );
+            ASSERT(ERROR_NONE ==
+                   custom_add_in_descriptor(BLE_GATT_HANDLE_INVALID,
+                                            &nordicUUID,
+                                            p_desc->getValuePtr(),
+                                            p_desc->getInitialLength(),
+                                            p_desc->getMaxLength(),
+                                            &nrfDescriptorHandles[descriptorCount]),
+                BLE_ERROR_PARAM_OUT_OF_RANGE);
 
             uint16_t descHandle = descriptorCount;
             p_descriptors[descriptorCount++] = p_desc;