We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26aa16f + eda0645 commit 8e44a75Copy full SHA for 8e44a75
features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp
@@ -510,7 +510,7 @@ ble_error_t GattServer::insert_descriptor(
510
#endif // BLE_FEATURE_SECURITY
511
}
512
513
- if (properties & READ_PROPERTY) {
+ if (properties & READ_PROPERTY && !(attribute_it->settings & ATTS_SET_CCC)) {
514
attribute_it->settings |= ATTS_SET_READ_CBACK;
515
516
@@ -543,7 +543,7 @@ ble_error_t GattServer::insert_descriptor(
543
544
545
546
- if (properties & WRITABLE_PROPERTIES) {
+ if (properties & WRITABLE_PROPERTIES && !(attribute_it->settings & ATTS_SET_CCC)) {
547
attribute_it->settings |= ATTS_SET_WRITE_CBACK;
548
549
0 commit comments