Skip to content

Commit eda0645

Browse files
no read callback for CCC
1 parent de2743b commit eda0645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ ble_error_t GattServer::insert_descriptor(
510510
#endif // BLE_FEATURE_SECURITY
511511
}
512512

513-
if (properties & READ_PROPERTY) {
513+
if (properties & READ_PROPERTY && !(attribute_it->settings & ATTS_SET_CCC)) {
514514
attribute_it->settings |= ATTS_SET_READ_CBACK;
515515
}
516516
}

0 commit comments

Comments
 (0)