BLE: Fix GapAdvertisingData copy constructor.

pull/8738/head
Vincent Coubard 2018-11-08 15:42:41 +00:00
parent 2f53ee896c
commit 426de4a2d9
1 changed files with 3 additions and 3 deletions

View File

@ -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: