Skip to content

Commit 79e8bf4

Browse files
committed
BLE:Cordio: ATTS setting for write cback should use bitwise or
1 parent 31da50e commit 79e8bf4

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
@@ -294,7 +294,7 @@ ble_error_t GattServer::insert_characteristic_value_attribute(
294294
attribute_it->settings = ATTS_SET_READ_CBACK;
295295
}
296296
if (properties & WRITABLE_PROPERTIES) {
297-
attribute_it->settings = ATTS_SET_WRITE_CBACK;
297+
attribute_it->settings |= ATTS_SET_WRITE_CBACK;
298298
}
299299
if (value_attribute.getUUID().shortOrLong() == UUID::UUID_TYPE_LONG) {
300300
attribute_it->settings |= ATTS_SET_UUID_128;

0 commit comments

Comments
 (0)