add missing FINAL_SWAP check

pull/379/head
John Bland 2023-08-22 22:40:41 -04:00 committed by Daniele Lacamera
parent 00a9572b94
commit 5a7665a9e3
1 changed files with 1 additions and 1 deletions

View File

@ -853,7 +853,7 @@ void RAMFUNCTION wolfBoot_start(void)
* wolfBoot_update_trigger is called and thus it shouldn't be called * wolfBoot_update_trigger is called and thus it shouldn't be called
* if an update is already in progress */ * if an update is already in progress */
#if defined(NVM_FLASH_WRITEONCE) || defined(WOLFBOOT_FLAGS_INVERT) #if defined(NVM_FLASH_WRITEONCE) || defined(WOLFBOOT_FLAGS_INVERT)
if ((wolfBoot_get_partition_state(PART_UPDATE, &st) != 0) || (st != IMG_STATE_UPDATING)) if ((wolfBoot_get_partition_state(PART_UPDATE, &st) != 0) || (st != IMG_STATE_UPDATING && st != IMG_STATE_FINAL_SWAP))
#endif #endif
{ {
wolfBoot_update_trigger(); wolfBoot_update_trigger();