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 894886d commit b93733eCopy full SHA for b93733e
connectivity/FEATURE_BLE/libraries/TARGET_CORDIO/include/ble/internal/PalAttClientImpl.h
@@ -381,13 +381,11 @@ class PalAttClient : public interface::PalAttClient {
381
struct PrepareWriteResponseConverter : ResponseConverter<ATTC_PREPARE_WRITE_RSP> {
382
static AttPrepareWriteResponse convert(const attEvt_t* event)
383
{
384
- // WARNING: Not sure if correct, the stack erase the length parameter
385
return AttPrepareWriteResponse(
386
event->handle,
387
- to_uint16_t(event->pValue + 2),
388
- // FIXME: the stack set the lenght to 0, the data won't be seen ...
+ 0, /* offset is lost */
389
make_const_Span(
390
- event->pValue + 4,
+ event->pValue,
391
event->valueLen
392
)
393
);
0 commit comments