fix not defined var

This commit is contained in:
Jason2866
2024-12-10 18:17:37 +01:00
committed by GitHub
parent dc971cca34
commit a718463dd3
+2 -1
View File
@@ -34,7 +34,8 @@ build_core = board.get("build.core", "").lower()
SConscript("_embed_files.py", exports="env")
if "espidf" not in env.subst("$PIOFRAMEWORK"):
if os.path.exists(join(FRAMEWORK_DIR, "tools", "platformio-build.py")):
if os.path.exists(join(DefaultEnvironment().PioPlatform().get_package_dir(
"framework-arduinoespressif32"), "tools", "platformio-build.py")):
PIO_BUILD = "platformio-build.py"
else:
PIO_BUILD = "pioarduino-build.py"