Formatting fix

pull/10072/head
Nick 2019-03-13 07:58:24 -04:00
parent e08b200eef
commit 44c5c7ef5a
1 changed files with 2 additions and 3 deletions

View File

@ -147,11 +147,10 @@ ble_error_t MaximGattServer::addService_(GattService &service)
currAtt->maxLen = p_char->getValueAttribute().getMaxLength();
currAtt->settings = ATTS_SET_WRITE_CBACK | ATTS_SET_READ_CBACK;
if(p_char->getValueAttribute().hasVariableLength())
{
if(p_char->getValueAttribute().hasVariableLength()) {
currAtt->settings |= ATTS_SET_VARIABLE_LEN;
}
if (p_char->getValueAttribute().getUUID().shortOrLong() == UUID::UUID_TYPE_LONG) {
currAtt->settings |= ATTS_SET_UUID_128;
}