We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f523c60 commit b0c7df9Copy full SHA for b0c7df9
boot/bootutil/src/bootutil_misc.c
@@ -173,7 +173,7 @@ boot_status_off(const struct flash_area *fap)
173
elem_sz = flash_area_align(fap);
174
175
#if MCUBOOT_SWAP_USING_SCRATCH
176
- if (fap->fa_id == FLASH_AREA_IMAGE_SCRATCH) {
+ if (flash_area_get_id(fap) == FLASH_AREA_IMAGE_SCRATCH) {
177
off_from_end = boot_scratch_trailer_sz(elem_sz);
178
} else {
179
#endif
0 commit comments