not include attribute write cback for CCC

pull/10610/head
paul-szczepanek-arm 2019-05-14 10:16:08 +01:00 committed by adbridge
parent 4c43bd806f
commit 15d0a9422d
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ ble_error_t GattServer::insert_descriptor(
#endif // BLE_FEATURE_SECURITY
}
if (properties & WRITABLE_PROPERTIES) {
if (properties & WRITABLE_PROPERTIES && !(attribute_it->settings & ATTS_SET_CCC)) {
attribute_it->settings |= ATTS_SET_WRITE_CBACK;
}
}