Updated
Fork of BLE_API by
Diff: ble/GapAdvertisingData.h
- Revision:
- 1097:4d22814faf46
- Parent:
- 1096:c3a43f09f1c5
- Child:
- 1098:5f6b5ea5d5f2
--- a/ble/GapAdvertisingData.h Mon Jan 11 08:51:52 2016 +0000 +++ b/ble/GapAdvertisingData.h Mon Jan 11 08:51:53 2016 +0000 @@ -227,7 +227,7 @@ if (field) { // Field type already exist, either add to field or replace - return updateFieldPayload(advDataType, payload, len, field); + return updateField(advDataType, payload, len, field); } else { // field doesn't exists, insert new return appendField(advDataType, payload, len); @@ -254,7 +254,7 @@ if (field) { // Field type already exist, either add to field or replace - return updateFieldPayload(advDataType, payload, len, field); + return updateField(advDataType, payload, len, field); } else { // field doesn't exists, return an error return BLE_ERROR_UNSPECIFIED; @@ -394,7 +394,7 @@ * the existing data in the field with the supplied data. * Returns BLE_ERROR_NONE on success. */ - ble_error_t updateFieldPayload(DataType_t advDataType, const uint8_t *payload, uint8_t len, uint8_t* field) + ble_error_t updateField(DataType_t advDataType, const uint8_t *payload, uint8_t len, uint8_t* field) { ble_error_t result = BLE_ERROR_BUFFER_OVERFLOW;