Skip to content

Commit 4e4ff3c

Browse files
committed
Do not check for WRITEONCE when flags are on ext
1 parent f09e5f5 commit 4e4ff3c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/libwolfboot.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,10 +752,8 @@ void RAMFUNCTION wolfBoot_update_trigger(void)
752752
* FLAGS_INVERT needs erased flags because the bin-assemble's fill byte may
753753
* not match what's in wolfBoot */
754754
if (FLAGS_UPDATE_EXT()) {
755-
#ifndef NVM_FLASH_WRITEONCE
756755
ext_flash_erase(lastSector, SECTOR_FLAGS_SIZE);
757756
wolfBoot_set_partition_state(PART_UPDATE, st);
758-
#endif
759757
} else {
760758
#ifndef NVM_FLASH_WRITEONCE
761759
hal_flash_erase(lastSector, SECTOR_FLAGS_SIZE);

0 commit comments

Comments
 (0)