mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Fix GapAdvertisingData copy constructor.
parent
2f53ee896c
commit
426de4a2d9
|
@ -930,9 +930,9 @@ private:
|
|||
}
|
||||
|
||||
protected:
|
||||
AdvertisingData(AdvertisingData& other) {
|
||||
_buffer = mbed::make_Span(other.getPayload(), other.getBufferSize());
|
||||
_payloadLen = other.getPayloadLen();
|
||||
AdvertisingData(const AdvertisingData& other) :
|
||||
_buffer(other._buffer),
|
||||
_payloadLen(other._payloadLen) {
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue