From 5eb38f9c2a1720e9cba421aed8c57b07625e9ce5 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 23 Sep 2024 10:02:51 +0200 Subject: [PATCH] fix --- bootloader/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootloader/src/main.rs b/bootloader/src/main.rs index 1997222..40dbdf5 100644 --- a/bootloader/src/main.rs +++ b/bootloader/src/main.rs @@ -57,7 +57,7 @@ const APP_B_SIZE_ADDR: u32 = APP_B_END_ADDR - 8; // 0x3FFF8 const APP_B_CRC_ADDR: u32 = APP_B_END_ADDR - 4; // 0x3FFFC pub const APP_B_END_ADDR: u32 = NVM_SIZE; // 0x40000 -pub const APP_IMG_SZ: u32 = APP_B_END_ADDR - APP_A_END_ADDR / 2; +pub const APP_IMG_SZ: u32 = APP_B_END_ADDR - APP_A_START_ADDR / 2; static_assertions::const_assert!((APP_B_END_ADDR - BOOTLOADER_END_ADDR) % 2 == 0);