diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp index d4a0f9db1b..ff9cc6683b 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp @@ -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; } }