remove sector alignment check

pull/532/head
John Bland 2024-12-30 03:54:43 -05:00 committed by Daniele Lacamera
parent c75101e999
commit a04f234b85
1 changed files with 0 additions and 5 deletions

View File

@ -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();