From 00491275e0df34bb47f0ebac4c8844a3c8e57f39 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Oct 2021 22:26:51 +1100 Subject: [PATCH] waf: added image_maxsize to apj files this allows the px4_uploader.py script to load apj files --- Tools/ardupilotwaf/chibios.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/ardupilotwaf/chibios.py b/Tools/ardupilotwaf/chibios.py index f3d9feade4..b6acc49298 100644 --- a/Tools/ardupilotwaf/chibios.py +++ b/Tools/ardupilotwaf/chibios.py @@ -235,6 +235,7 @@ class generate_apj(Task.Task): "image_size": len(intf_img), "extf_image_size": len(extf_img), "flash_total": int(self.env.FLASH_TOTAL), + "image_maxsize": int(self.env.FLASH_TOTAL), "flash_free": int(self.env.FLASH_TOTAL) - len(intf_img), "extflash_total": int(self.env.EXTERNAL_PROG_FLASH_MB * 1024 * 1024), "extflash_free": int(self.env.EXTERNAL_PROG_FLASH_MB * 1024 * 1024) - len(extf_img),