mirror of https://github.com/wolfSSL/wolfBoot.git
add missing FINAL_SWAP check
parent
00a9572b94
commit
5a7665a9e3
|
@ -853,7 +853,7 @@ void RAMFUNCTION wolfBoot_start(void)
|
|||
* wolfBoot_update_trigger is called and thus it shouldn't be called
|
||||
* if an update is already in progress */
|
||||
#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
|
||||
{
|
||||
wolfBoot_update_trigger();
|
||||
|
|
Loading…
Reference in New Issue