Skip to content

Commit 23c494b

Browse files
authored
Merge pull request #9748 from desmond-blue/fix_Cordio_ATTS_callback
BLE:Cordio: ATTS setting for write cback should use bitwise or
2 parents 723236f + 79e8bf4 commit 23c494b

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)