sa
Fork of nRF51822 by
Revision 437:ed7c7f31ac37, committed 2015-09-25
- Comitter:
- rgrover1
- Date:
- Fri Sep 25 15:26:58 2015 +0100
- Parent:
- 436:c212548b96ff
- Child:
- 438:da009ac449e9
- Commit message:
- Synchronized with git rev 4fa43078
Author: Rohit Grover
initialize all members of gattc_write_params_t in GattClient::write().
This avoids some compiler warnings about un-initialized members.
Changed in this revision
source/nRF5xGattClient.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/source/nRF5xGattClient.h Fri Sep 25 15:26:58 2015 +0100 +++ b/source/nRF5xGattClient.h Fri Sep 25 15:26:58 2015 +0100 @@ -122,9 +122,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 = { }; + ble_gattc_write_params_t writeParams; writeParams.write_op = cmd; + writeParams.flags = 0; /* this is inconsequential */ writeParams.handle = attributeHandle; + writeParams.offset = 0; writeParams.len = length; writeParams.p_value = const_cast<uint8_t *>(value);