Merge pull request #9748 from desmond-blue/fix_Cordio_ATTS_callback

BLE:Cordio: ATTS setting for write cback should use bitwise or
pull/9764/head
Martin Kojtal 2019-02-19 15:42:06 +01:00 committed by GitHub
commit 23c494b60a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ ble_error_t GattServer::insert_characteristic_value_attribute(
attribute_it->settings = ATTS_SET_READ_CBACK;
}
if (properties & WRITABLE_PROPERTIES) {
attribute_it->settings = ATTS_SET_WRITE_CBACK;
attribute_it->settings |= ATTS_SET_WRITE_CBACK;
}
if (value_attribute.getUUID().shortOrLong() == UUID::UUID_TYPE_LONG) {
attribute_it->settings |= ATTS_SET_UUID_128;