-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ESP32] Fix template argument for scan response #29437
[ESP32] Fix template argument for scan response #29437
Conversation
PR #29437: Size comparison from 33052cc to 0cc1eab Increases (1 build for telink)
Full report (66 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
@@ -1006,7 +1006,7 @@ CHIP_ERROR BLEManagerImpl::ConfigureScanResponseData(ByteSpan data) | |||
} | |||
memcpy(scanResponseBuffer, data.data(), data.size()); | |||
ByteSpan scanResponseSpan(scanResponseBuffer); | |||
mScanResponse = chip::Optional(scanResponseSpan); | |||
mScanResponse = chip::Optional<ByteSpan>(scanResponseSpan); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference, @jadhavrohit924, something like mScanResponse = chip::MakeOptional(scanResponseSpan);
might be simpler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jadhavrohit924 Please check
Problem