Skip to content

Commit

Permalink
move disable backup flag to correct spot
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbland1 committed Dec 17, 2024
1 parent 0572d34 commit bd9b64d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/update_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,18 +493,18 @@ static int wolfBoot_delta_update(struct wolfBoot_image *boot,
wb_flash_erase(boot, sector * WOLFBOOT_SECTOR_SIZE, WOLFBOOT_SECTOR_SIZE);
sector++;
}
#ifndef DISABLE_BACKUP
#endif
out:
#ifdef EXT_FLASH
ext_flash_lock();
#endif
hal_flash_lock();
/* start re-entrant final erase, return code is only for resumption in
* wolfBoot_start */
#ifndef DISABLE_BACKUP
if (ret == 0) {
wolfBoot_swap_and_final_erase(0);
}
#endif
/* encryption key was not erased, will be erased by success */
return ret;
}
Expand Down

0 comments on commit bd9b64d

Please sign in to comment.