Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Revision 451:87e7f14a3fa1, committed 2015-11-02
- Comitter:
- rgrover1
- Date:
- Mon Nov 02 09:05:10 2015 +0000
- Parent:
- 450:e718f00626f2
- Child:
- 452:82d81b02ef87
- Commit message:
- Synchronized with git rev 816f4559
Author: Rohit Grover
white space diffs; convert tabs to spaces
Changed in this revision
| source/nRF5xGattServer.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
