From aa42aeb514c12d97c1661cf2098ef66854c73113 Mon Sep 17 00:00:00 2001 From: Paul Szczeanek Date: Tue, 14 Jul 2020 16:59:58 +0100 Subject: [PATCH] callbacks to descriptors should not based on characteristic properties --- .../targets/TARGET_CORDIO/source/CordioGattServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp index 2ba90c088a..6ac7d13f59 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 && !(attribute_it->settings & ATTS_SET_CCC)) { + if (!(attribute_it->settings & ATTS_SET_CCC)) { attribute_it->settings |= ATTS_SET_READ_CBACK; } } @@ -543,7 +543,7 @@ ble_error_t GattServer::insert_descriptor( #endif // BLE_FEATURE_SECURITY } - if (properties & WRITABLE_PROPERTIES && !(attribute_it->settings & ATTS_SET_CCC)) { + if (!(attribute_it->settings & ATTS_SET_CCC)) { attribute_it->settings |= ATTS_SET_WRITE_CBACK; } }