Skip to content

Commit de2743b

Browse files
not include attribute write cback for CCC
1 parent 64575fe commit de2743b

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
@@ -543,7 +543,7 @@ ble_error_t GattServer::insert_descriptor(
543543
#endif // BLE_FEATURE_SECURITY
544544
}
545545

546-
if (properties & WRITABLE_PROPERTIES) {
546+
if (properties & WRITABLE_PROPERTIES && !(attribute_it->settings & ATTS_SET_CCC)) {
547547
attribute_it->settings |= ATTS_SET_WRITE_CBACK;
548548
}
549549
}

0 commit comments

Comments
 (0)