no read callback for CCC

pull/10575/head
paul-szczepanek-arm 2019-05-14 11:20:14 +01:00
parent de2743b702
commit eda064563c
1 changed files with 1 additions and 1 deletions

View File

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