offset is missing from prepare write response in cordio

pull/13449/head
Paul Szczeanek 2020-08-18 10:02:43 +01:00
parent 894886d1fe
commit b93733e4aa
1 changed files with 2 additions and 4 deletions

View File

@ -381,13 +381,11 @@ private:
struct PrepareWriteResponseConverter : ResponseConverter<ATTC_PREPARE_WRITE_RSP> { struct PrepareWriteResponseConverter : ResponseConverter<ATTC_PREPARE_WRITE_RSP> {
static AttPrepareWriteResponse convert(const attEvt_t* event) static AttPrepareWriteResponse convert(const attEvt_t* event)
{ {
// WARNING: Not sure if correct, the stack erase the length parameter
return AttPrepareWriteResponse( return AttPrepareWriteResponse(
event->handle, event->handle,
to_uint16_t(event->pValue + 2), 0, /* offset is lost */
// FIXME: the stack set the lenght to 0, the data won't be seen ...
make_const_Span( make_const_Span(
event->pValue + 4, event->pValue,
event->valueLen event->valueLen
) )
); );