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.
1 parent 1dbb478 commit 4598a28Copy full SHA for 4598a28
features/FEATURE_BLE/source/gap/AdvertisingDataBuilder.cpp
@@ -498,7 +498,7 @@ ble_error_t AdvertisingDataBuilder::setUUIDData(
498
size_t old_size = getFieldSize(shortType) + getFieldSize(longType);
499
500
/* if we can't fit the new data do not proceed */
501
- if (new_size > data.size() - (_payload_length - old_size)) {
+ if (new_size > _buffer.size() - (_payload_length - old_size)) {
502
return BLE_ERROR_BUFFER_OVERFLOW;
503
}
504
0 commit comments