Skip to content

Commit 1fadd96

Browse files
committed
Fix mkspiffs binary name when both arduino and esp-idf frameworks selected // Resolve #244
1 parent 685e78f commit 1fadd96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def __fetch_spiffs_size(target, source, env):
158158
],
159159
ERASECMD='"$PYTHONEXE" "$OBJCOPY" $ERASEFLAGS erase_flash',
160160

161-
MKSPIFFSTOOL="mkspiffs_${PIOPLATFORM}_${PIOFRAMEWORK}",
161+
MKSPIFFSTOOL="mkspiffs_${PIOPLATFORM}_" + ("espidf" if "espidf" in env.subst(
162+
"$PIOFRAMEWORK") else "${PIOFRAMEWORK}"),
162163
PROGSUFFIX=".elf"
163164
)
164165

0 commit comments

Comments
 (0)