Skip to content

Commit 6ab9afc

Browse files
de-nordicnordicjm
authored andcommitted
boot_serial: Use boot_state_init where intent to initialize
Replace boot_state_clear. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 parent e6fefac commit 6ab9afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/boot_serial/src/boot_serial_encryption.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ decrypt_image_inplace(const struct flash_area *fa_p,
216216
struct flash_sector sector;
217217
struct enc_key_data enc_data;
218218

219-
boot_state_clear(state);
219+
boot_state_init(state);
220220
memset(&_bs, 0, sizeof(struct boot_status));
221221

222222
/* Get size from last sector to know page/sector erase size */

0 commit comments

Comments
 (0)