We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 184a053 + d11cf28 commit 998cdf2Copy full SHA for 998cdf2
features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp
@@ -321,8 +321,10 @@ ble_error_t GattServer::insert_characteristic_value_attribute(
321
memset(attribute_it->pValue + *attribute_it->pLen, 0, attribute_it->maxLen - *attribute_it->pLen);
322
323
// Set value attribute settings
324
+ attribute_it->settings = 0;
325
+
326
if (properties & READ_PROPERTY) {
- attribute_it->settings = ATTS_SET_READ_CBACK;
327
+ attribute_it->settings |= ATTS_SET_READ_CBACK;
328
}
329
if (properties & WRITABLE_PROPERTIES) {
330
attribute_it->settings |= ATTS_SET_WRITE_CBACK;
0 commit comments