diff --git a/src/libwolfboot.c b/src/libwolfboot.c index b5bf5243..6a31cb16 100644 --- a/src/libwolfboot.c +++ b/src/libwolfboot.c @@ -740,11 +740,6 @@ void RAMFUNCTION wolfBoot_update_trigger(void) uint8_t selSec = 0; #endif - /* if PART_UPDATE_ENDFLAGS straddles a sector, (all non FLAGS_HOME builds) - * align it to the correct sector */ - if (PART_UPDATE_ENDFLAGS % WOLFBOOT_SECTOR_SIZE == 0) - lastSector -= WOLFBOOT_SECTOR_SIZE; - /* erase the sector flags */ if (FLAGS_UPDATE_EXT()) { ext_flash_unlock();