mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10638 from AGlass0fMilk/fix-advertising-uuid-bug
Fix AdvertisingDataBuilder UUID Insertion Bugpull/10646/head
commit
b3328fdcc0
|
@ -498,7 +498,7 @@ ble_error_t AdvertisingDataBuilder::setUUIDData(
|
|||
size_t old_size = getFieldSize(shortType) + getFieldSize(longType);
|
||||
|
||||
/* if we can't fit the new data do not proceed */
|
||||
if (new_size > data.size() - (_payload_length - old_size)) {
|
||||
if (new_size > _buffer.size() - (_payload_length - old_size)) {
|
||||
return BLE_ERROR_BUFFER_OVERFLOW;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue