Skip to content

Commit a718463

Browse files
authored
fix not defined var
1 parent dc971cc commit a718463

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/frameworks/arduino.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
SConscript("_embed_files.py", exports="env")
3535

3636
if "espidf" not in env.subst("$PIOFRAMEWORK"):
37-
if os.path.exists(join(FRAMEWORK_DIR, "tools", "platformio-build.py")):
37+
if os.path.exists(join(DefaultEnvironment().PioPlatform().get_package_dir(
38+
"framework-arduinoespressif32"), "tools", "platformio-build.py")):
3839
PIO_BUILD = "platformio-build.py"
3940
else:
4041
PIO_BUILD = "pioarduino-build.py"

0 commit comments

Comments
 (0)