Skip to content

Commit f78554b

Browse files
ahasztagtomchy
authored andcommitted
samples: dfu_multi_image: Add success log for write operations
Add log message when DFU multi image write operation completes successfully. This helps with testing, as it allows to avoid situations where a new command is written before the old write has finished. Signed-off-by: Artur Hadasz <[email protected]>
1 parent ca35668 commit f78554b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

samples/dfu/dfu_multi_image/src/dfu_multi_image_shell.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ static int cmd_dfu_multi_image_write(const struct shell *shell, size_t argc, cha
7373
if (ret < 0) {
7474
shell_error(shell, "DFU multi image write failed: %d", ret);
7575
return ret;
76+
} else {
77+
shell_print(shell, "Successfully wrote %d bytes at offset %d", chunk_size,
78+
write_offset);
7679
}
7780

7881
return 0;

0 commit comments

Comments
 (0)