Skip to content

Commit 2023416

Browse files
authored
change if for framework
1 parent 0bad580 commit 2023416

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/frameworks/espidf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,7 @@ def _skip_prj_source_files(node):
20582058
# Compile Arduino IDF sources
20592059
#
20602060

2061-
if "arduino" in env.get("PIOFRAMEWORK") and "espidf" not in env.get("PIOFRAMEWORK"):
2061+
if ("arduino" in env.subst("$PIOFRAMEWORK")) and ("espidf" not in env.subst("$PIOFRAMEWORK")):
20622062
def idf_lib_copy(source, target, env):
20632063
env_build = join(env["PROJECT_BUILD_DIR"],env["PIOENV"])
20642064
sdkconfig_h_path = join(env_build,"config","sdkconfig.h")
@@ -2116,7 +2116,7 @@ def idf_lib_copy(source, target, env):
21162116
print("*** Original Arduino \"idf_component.yml\" couldnt be restored ***")
21172117
env.AddPostAction("checkprogsize", idf_lib_copy)
21182118

2119-
if "espidf" in env.get("PIOFRAMEWORK") and (flag_custom_component_add == True or flag_custom_component_remove == True):
2119+
if "espidf" in env.subst("$PIOFRAMEWORK") and (flag_custom_component_add == True or flag_custom_component_remove == True):
21202120
def idf_custom_component(source, target, env):
21212121
try:
21222122
shutil.copy(join(ARDUINO_FRAMEWORK_DIR,"idf_component.yml.orig"),join(ARDUINO_FRAMEWORK_DIR,"idf_component.yml"))

0 commit comments

Comments
 (0)