Skip to content

Commit 5a56d72

Browse files
committed
set the payload size
Signed-off-by: [email protected] <[email protected]>
1 parent 803e75e commit 5a56d72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/oapv_metadata.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ int oapvm_write_mdcv(oapvm_payload_mdcv_t *mdcv, void *data, int *size)
214214
oapv_bsw_write(&bs, tu32, 32);
215215

216216
oapv_bsw_deinit(&bs);
217+
218+
*size = 24; // MDCV payload has 24 bytes
217219
return OAPV_OK;
218220
}
219221

@@ -253,6 +255,8 @@ int oapvm_write_cll(oapvm_payload_cll_t *cll, void *data, int *size)
253255
oapv_bsw_write(&bs, t, 16);
254256

255257
oapv_bsw_deinit(&bs);
258+
259+
*size = 4; // CLL payload has 4 bytes
256260
return OAPV_OK;
257261
}
258262

0 commit comments

Comments
 (0)