We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cab4bc commit b35f3b6Copy full SHA for b35f3b6
1 file changed
src/update_flash.c
@@ -728,6 +728,9 @@ static int RAMFUNCTION wolfBoot_update(int fallback_allowed)
728
*/
729
update_type = wolfBoot_get_image_type(PART_UPDATE);
730
731
+ cur_ver = wolfBoot_current_firmware_version();
732
+ upd_ver = wolfBoot_update_firmware_version();
733
+
734
wolfBoot_get_update_sector_flag(0, &flag);
735
/* Check the first sector to detect interrupted update */
736
if (flag == SECT_FLAG_NEW) {
@@ -761,8 +764,6 @@ static int RAMFUNCTION wolfBoot_update(int fallback_allowed)
761
764
}
762
765
PART_SANITY_CHECK(&update);
763
766
- cur_ver = wolfBoot_current_firmware_version();
- upd_ver = wolfBoot_update_firmware_version();
767
768
wolfBoot_printf("Versions: Current 0x%x, Update 0x%x\n",
769
cur_ver, upd_ver);
0 commit comments