Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the real condition to check is descriptor->isReadAllowed() which is already checked above

attribute_it->settings |= ATTS_SET_READ_CBACK;
}
}
Expand Down Expand Up @@ -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)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

attribute_it->settings |= ATTS_SET_WRITE_CBACK;
}
}
Expand Down