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.
Dependencies: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
Diff: nRF51GattServer.cpp
- Revision:
- 87:f9516241903b
- Parent:
- 86:561631ee642d
- Child:
- 88:fdb2b0db620e
--- 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;