From eda064563c796b3f78efe34367b54eebb9bf1c94 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Tue, 14 May 2019 11:20:14 +0100 Subject: [PATCH] no read callback for CCC --- .../targets/TARGET_CORDIO/source/CordioGattServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp index ff9cc6683b..08cd7ae124 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp @@ -510,7 +510,7 @@ ble_error_t GattServer::insert_descriptor( #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; } }