From 6698f655161e25471b0c62c73dd92c548519b4f8 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 25 Oct 2025 07:14:16 +0200 Subject: nfpvalues, size: handle missing sections in size output --- script/size.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/size.py') diff --git a/script/size.py b/script/size.py index e1f6605..c11e4cd 100755 --- a/script/size.py +++ b/script/size.py @@ -31,8 +31,8 @@ def main(size_executable, rom_sections, ram_sections): section_size[section] = size total = { - "ROM": sum(map(lambda section: section_size[section], rom_sections)), - "RAM": sum(map(lambda section: section_size[section], ram_sections)), + "ROM": sum(map(lambda section: section_size.get(section, 0), rom_sections)), + "RAM": sum(map(lambda section: section_size.get(section, 0), ram_sections)), } output = {"section": section_size, "total": total} -- cgit v1.2.3