Skip to content

Commit 6ce320e

Browse files
committed
fix inverted emergency update branch hint
F/2572
1 parent 41ffb2c commit 6ce320e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/update_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ void RAMFUNCTION wolfBoot_start(void)
14561456
wolfBoot_panic();
14571457
} else {
14581458
/* Emergency update successful, try to re-open boot image */
1459-
if (likely(((wolfBoot_open_image(&boot, PART_BOOT) < 0) ||
1459+
if (unlikely(((wolfBoot_open_image(&boot, PART_BOOT) < 0) ||
14601460
(wolfBoot_verify_integrity(&boot) < 0) ||
14611461
(wolfBoot_verify_authenticity(&boot) < 0)
14621462
))) {

0 commit comments

Comments
 (0)