Skip to content

Commit 5a7665a

Browse files
jpbland1danielinux
authored andcommitted
add missing FINAL_SWAP check
1 parent 00a9572 commit 5a7665a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/update_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ void RAMFUNCTION wolfBoot_start(void)
853853
* wolfBoot_update_trigger is called and thus it shouldn't be called
854854
* if an update is already in progress */
855855
#if defined(NVM_FLASH_WRITEONCE) || defined(WOLFBOOT_FLAGS_INVERT)
856-
if ((wolfBoot_get_partition_state(PART_UPDATE, &st) != 0) || (st != IMG_STATE_UPDATING))
856+
if ((wolfBoot_get_partition_state(PART_UPDATE, &st) != 0) || (st != IMG_STATE_UPDATING && st != IMG_STATE_FINAL_SWAP))
857857
#endif
858858
{
859859
wolfBoot_update_trigger();

0 commit comments

Comments
 (0)