Skip to content

Commit c6d77f3

Browse files
committed
Minor fixes
1 parent 9f345e3 commit c6d77f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builder/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ def _get_board_f_flash(env):
152152

153153
if int(ARGUMENTS.get("PIOVERBOSE", 0)):
154154
env.Prepend(UPLOADERFLAGS=["-vv"])
155+
156+
# Allow user to override via pre:script
155157
if env.get("PROGNAME", "program") == "program":
156158
env.Replace(PROGNAME="firmware")
157159

@@ -368,8 +370,7 @@ def __fetch_spiffs_size(target, source, env):
368370
AlwaysBuild(env.Alias("buildfs", target_firm))
369371
else:
370372
if env.subst("$PIOFRAMEWORK") in ("arduino", "simba"):
371-
target_firm = env.ElfToBin(
372-
join("$BUILD_DIR", "${PROGNAME}"), target_elf)
373+
target_firm = env.ElfToBin(target_elf)
373374
else:
374375
target_firm = env.ElfToBin([
375376
join("$BUILD_DIR", "eagle.flash.bin"),

0 commit comments

Comments
 (0)