We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e575224 commit 9abc473Copy full SHA for 9abc473
1 file changed
src/update_flash.c
@@ -51,8 +51,8 @@ static void RAMFUNCTION wolfBoot_self_update(struct wolfBoot_image *src)
51
hal_flash_unlock();
52
wolfBoot_erase_bootloader();
53
#ifdef EXT_FLASH
54
- while (pos < src->fw_size) {
55
- if (PART_IS_EXT(src)) {
+ if (PART_IS_EXT(src)) {
+ while (pos < src->fw_size) {
56
uint8_t buffer[FLASHBUFFER_SIZE];
57
if (src_offset + pos < (src->fw_size + IMAGE_HEADER_SIZE + FLASHBUFFER_SIZE)) {
58
ext_flash_read((uintptr_t)(src->hdr) + src_offset + pos, (void *)buffer, FLASHBUFFER_SIZE);
0 commit comments