You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ml...@apache.org on 2020/04/30 11:49:04 UTC

[mynewt-mcumgr] branch master updated: zephyr: adapt to changes in flash_img.c

This is an automated email from the ASF dual-hosted git repository.

mlaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git


The following commit(s) were added to refs/heads/master by this push:
     new bde2812  zephyr: adapt to changes in flash_img.c
     new 9f6555a  Merge pull request #79 from hakonfam/stream_flash
bde2812 is described below

commit bde2812e8f1c635bdb1c1e56b8b24c1d37d3a79b
Author: Håkon Øye Amundsen <ha...@nordicsemi.no>
AuthorDate: Wed Apr 29 14:15:04 2020 +0200

    zephyr: adapt to changes in flash_img.c
    
    Update member access of context.
    
    Signed-off-by: Håkon Øye Amundsen <ha...@nordicsemi.no>
---
 cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c b/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c
index af9abbb..e5db289 100644
--- a/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c
+++ b/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c
@@ -292,7 +292,7 @@ img_mgmt_impl_write_image_data(unsigned int offset, const void *data,
 		}
 	}
 
-	if (offset != ctx->bytes_written + ctx->buf_bytes) {
+	if (offset != ctx->stream.bytes_written + ctx->stream.buf_bytes) {
 		return MGMT_ERR_EUNKNOWN;
 	}