Skip to content

Commit 6e0f953

Browse files
nordicjmanangl
authored andcommitted
pcd: Fix usage of stream writer
Fixes an issue with stream writer by providing the size of the partition Signed-off-by: Jamie McCrae <[email protected]>
1 parent b0162f5 commit 6e0f953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/pcd/src/pcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ int pcd_fw_copy(const struct device *fdev)
100100
}
101101

102102
rc = stream_flash_init(&stream, fdev, buf, sizeof(buf),
103-
cmd->offset, 0, NULL);
103+
cmd->offset, PM_APP_SIZE, NULL);
104104
if (rc != 0) {
105105
LOG_ERR("stream_flash_init failed: %d", rc);
106106
return rc;

0 commit comments

Comments
 (0)