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 87:f9516241903b, committed 2015-01-21
- Comitter:
- rgrover1
- Date:
- Wed Jan 21 10:01:16 2015 +0000
- Parent:
- 86:561631ee642d
- Child:
- 88:fdb2b0db620e
- Commit message:
- Synchronized with git rev 5d2eb310
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 Wed Jan 21 10:01:16 2015 +0000
+++ b/nRF51GattServer.cpp Wed Jan 21 10:01:16 2015 +0000
@@ -337,9 +337,7 @@
.data = NULL
};
- /* Ask for authorization and, potentially, new data.
- Use updated parameters to construct reply.
- */
+ /* Ask for authorization and, potentially, new data. Use updated parameters to construct reply. */
p_characteristics[i]->authorizeRead(&cbParams);
ble_gatts_rw_authorize_reply_params_t reply = {
@@ -350,10 +348,10 @@
reply.params.read.gatt_status = BLE_GATT_STATUS_SUCCESS;
if (cbParams.data != NULL) {
- reply.params.read.update = 1;
- reply.params.read.offset = cbParams.offset;
- reply.params.read.len = cbParams.len;
- reply.params.read.p_data = cbParams.data;
+ reply.params.read.update = 1;
+ reply.params.read.offset = cbParams.offset;
+ reply.params.read.len = cbParams.len;
+ reply.params.read.p_data = cbParams.data;
}
} else {
reply.params.read.gatt_status = BLE_GATT_STATUS_ATTERR_READ_NOT_PERMITTED;
