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:
parent
2476988309
commit
68dcc0ee10
|
@ -350,7 +350,7 @@ decrypt_image_inplace(const struct flash_area *fa_p,
|
||||||
memset(&_bs, 0, sizeof(struct boot_status));
|
memset(&_bs, 0, sizeof(struct boot_status));
|
||||||
|
|
||||||
/* Get size from last sector to know page/sector erase size */
|
/* Get size from last sector to know page/sector erase size */
|
||||||
rc = flash_area_sector_from_off(boot_status_off(fa_p), §or);
|
rc = flash_area_get_sector(fap, boot_status_off(fa_p), §or);
|
||||||
|
|
||||||
|
|
||||||
image_index = BOOT_CURR_IMG(state);
|
image_index = BOOT_CURR_IMG(state);
|
||||||
|
|
Loading…
Reference in New Issue