[builder] Fix printing flash layout in env.py (#191)

Pointed to the proper item.
This commit is contained in:
protectivedad
2023-10-27 08:34:09 -03:00
committed by GitHub
parent 1ed0000819
commit 7f43624824

View File

@@ -126,7 +126,7 @@ def env_print_info(
if env.get("FLASH_IS_CUSTOM", False):
print("CUSTOM FLASH LAYOUT:")
for name, layout in board.get("flash").items():
(_, _, length) = v.partition("+")
(_, _, length) = layout.partition("+")
length = int(length, 16)
print(f" - {name}: {layout} ({sizeof(length)})")