BLE:Cordio: ATTS setting for write cback should use bitwise or

pull/9748/head
Desmond Chen 2019-02-19 14:19:44 +08:00
parent 31da50e8fa
commit 79e8bf4bc9
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;