Skip to content

Commit b93733e

Browse files
offset is missing from prepare write response in cordio
1 parent 894886d commit b93733e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

connectivity/FEATURE_BLE/libraries/TARGET_CORDIO/include/ble/internal/PalAttClientImpl.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,13 +381,11 @@ class PalAttClient : public interface::PalAttClient {
381381
struct PrepareWriteResponseConverter : ResponseConverter<ATTC_PREPARE_WRITE_RSP> {
382382
static AttPrepareWriteResponse convert(const attEvt_t* event)
383383
{
384-
// WARNING: Not sure if correct, the stack erase the length parameter
385384
return AttPrepareWriteResponse(
386385
event->handle,
387-
to_uint16_t(event->pValue + 2),
388-
// FIXME: the stack set the lenght to 0, the data won't be seen ...
386+
0, /* offset is lost */
389387
make_const_Span(
390-
event->pValue + 4,
388+
event->pValue,
391389
event->valueLen
392390
)
393391
);

0 commit comments

Comments
 (0)