Skip to content

Commit 29d3e5f

Browse files
de-nordicrghaddab
authored andcommitted
[nrf fromtree] dfu/mcuboot: Use flash_area_flatten instead of flash_area_erase
The invocation of flash_area_erase, in boot_erase_img_bank, has been replaced by flash_area_flatten. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit c4c7e15)
1 parent 750323f commit 29d3e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/dfu/boot/mcuboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ int boot_erase_img_bank(uint8_t area_id)
278278
return rc;
279279
}
280280

281-
rc = flash_area_erase(fa, 0, fa->fa_size);
281+
rc = flash_area_flatten(fa, 0, fa->fa_size);
282282

283283
flash_area_close(fa);
284284

0 commit comments

Comments
 (0)