mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9748 from desmond-blue/fix_Cordio_ATTS_callback
BLE:Cordio: ATTS setting for write cback should use bitwise orpull/9764/head
commit
23c494b60a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue