zephyr: single_loader: Switch to flash_area_get_sector

Use flash_area_get_sector instead of flash_area_sector_from_off.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
Dominik Ermel 2023-01-05 13:38:23 +00:00 committed by David Brown
parent 2476988309
commit 68dcc0ee10
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ decrypt_image_inplace(const struct flash_area *fa_p,
memset(&_bs, 0, sizeof(struct boot_status));
/* Get size from last sector to know page/sector erase size */
rc = flash_area_sector_from_off(boot_status_off(fa_p), &sector);
rc = flash_area_get_sector(fap, boot_status_off(fa_p), &sector);
image_index = BOOT_CURR_IMG(state);