MicroBit as BLE gamepad
Fork of nRF51822 by
Diff: source/nRF5xGattServer.cpp
- Revision:
- 553:2a413611e569
- Parent:
- 552:20b282c26f96
- Child:
- 561:613dbbdeed27
diff -r 20b282c26f96 -r 2a413611e569 source/nRF5xGattServer.cpp --- a/source/nRF5xGattServer.cpp Mon Jan 11 10:19:10 2016 +0000 +++ b/source/nRF5xGattServer.cpp Mon Jan 11 10:19:11 2016 +0000 @@ -97,6 +97,7 @@ p_char->getValueAttribute().getValuePtr(), p_char->getValueAttribute().getLength(), p_char->getValueAttribute().getMaxLength(), + p_char->getValueAttribute().hasVariableLength(), userDescriptionDescriptorValuePtr, userDescriptionDescriptorValueLen, p_char->isReadAuthorizationEnabled(), @@ -129,6 +130,7 @@ p_desc->getValuePtr(), p_desc->getLength(), p_desc->getMaxLength(), + p_desc->hasVariableLength(), &nrfDescriptorHandles[descriptorCount]), BLE_ERROR_PARAM_OUT_OF_RANGE);