nochanges
Dependents: BLE_Acceleration_Statejudging
Fork of nRF51822 by
Diff: nRF51GattServer.cpp
- Revision:
- 87:f9516241903b
- Parent:
- 86:561631ee642d
- Child:
- 88:fdb2b0db620e
diff -r 561631ee642d -r f9516241903b nRF51GattServer.cpp --- 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;