No changes
Fork of nRF51822 by
Diff: source/nRF5xGattServer.cpp
- Revision:
- 524:502e53732c75
- Parent:
- 522:0f791e328558
- Child:
- 528:7144407893f0
--- a/source/nRF5xGattServer.cpp Wed Dec 02 12:58:42 2015 +0000 +++ b/source/nRF5xGattServer.cpp Wed Dec 02 13:14:17 2015 +0000 @@ -69,7 +69,7 @@ /* Skip any incompletely defined, read-only characteristics. */ if ((p_char->getValueAttribute().getValuePtr() == NULL) && - (p_char->getValueAttribute().getLength() == 0) && + (p_char->getValueAttribute().getInitialLength() == 0) && (p_char->getProperties() == GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ)) { continue; } @@ -95,9 +95,8 @@ p_char->getProperties(), p_char->getRequiredSecurity(), p_char->getValueAttribute().getValuePtr(), - p_char->getValueAttribute().getLength(), + p_char->getValueAttribute().getInitialLength(), p_char->getValueAttribute().getMaxLength(), - p_char->getValueAttribute().hasVariableLength(), userDescriptionDescriptorValuePtr, userDescriptionDescriptorValueLen, p_char->isReadAuthorizationEnabled(), @@ -128,9 +127,8 @@ custom_add_in_descriptor(BLE_GATT_HANDLE_INVALID, &nordicUUID, p_desc->getValuePtr(), - p_desc->getLength(), + p_desc->getInitialLength(), p_desc->getMaxLength(), - p_desc->hasVariableLength(), &nrfDescriptorHandles[descriptorCount]), BLE_ERROR_PARAM_OUT_OF_RANGE);