We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27b89f0 commit 2973414Copy full SHA for 2973414
1 file changed
src/update_flash.c
@@ -422,7 +422,7 @@ static int RAMFUNCTION wolfBoot_swap_and_final_erase(int resume)
422
struct wolfBoot_image boot[1];
423
struct wolfBoot_image update[1];
424
struct wolfBoot_image swap[1];
425
- uint8_t updateState;
+ uint8_t updateState = IMG_STATE_NEW;
426
int eraseLen = (WOLFBOOT_SECTOR_SIZE
427
#ifdef NVM_FLASH_WRITEONCE /* need to erase the redundant sector too */
428
* 2
0 commit comments