Skip to content

Commit 68f3bfa

Browse files
committed
Take into account resumed delta updates due to powerfail events
1 parent 929f9d3 commit 68f3bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/update_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ static int wolfBoot_delta_update(struct wolfBoot_image *boot,
249249
ret = -1;
250250
}
251251
} else {
252-
if (cur_v != delta_base_v) {
252+
if (!resume_inverse && (cur_v != delta_base_v)) {
253253
/* Wrong base image, cannot apply delta patch */
254254
ret = -1;
255255
} else {

0 commit comments

Comments
 (0)