fork
Fork of nRF51822 by
Diff: nRF51GattClient.h
- Revision:
- 345:dfde56236c36
- Parent:
- 344:2a44e5fd26bc
- Child:
- 346:14b090482fd2
--- a/nRF51GattClient.h Fri Jun 19 15:55:34 2015 +0100 +++ b/nRF51GattClient.h Fri Jun 19 15:55:35 2015 +0100 @@ -116,14 +116,11 @@ } virtual ble_error_t write(GattClient::WriteOp_t cmd, Gap::Handle_t connHandle, GattAttribute::Handle_t attributeHandle, size_t length, const uint8_t *value) const { - ble_gattc_write_params_t writeParams = { - .write_op = cmd, - // .flags = 0, - .handle = attributeHandle, - .offset = 0, - .len = length, - .p_value = const_cast<uint8_t *>(value), - }; + ble_gattc_write_params_t writeParams = { }; + writeParams.write_op = cmd; + writeParams.handle = attributeHandle; + writeParams.len = length; + writeParams.p_value = const_cast<uint8_t *>(value); uint32_t rc = sd_ble_gattc_write(connHandle, &writeParams); if (rc == NRF_SUCCESS) {