Skip to content

Commit 6448c05

Browse files
authored
Update arduino.py
1 parent 54ca558 commit 6448c05

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

builder/frameworks/arduino.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,22 +230,18 @@ def shorthen_includes(env, node):
230230
+ shortened_includes,
231231
)
232232

233-
# Check if framework = arduino, espidf is set "Arduino as an component of IDF"
233+
# Check if framework = arduino, espidf is set -> compile Arduino as an component of IDF
234+
# using platformio.ini entry since we modify the framework env var for Hybrid Compile!
234235
def get_frameworks_in_current_env():
235236
current_env_section = "env:" + env["PIOENV"]
236-
# Check if the "framework" option exists in the current environment
237237
if "framework" in config.options(current_env_section):
238-
# Get the value of the 'framework' option
239238
frameworks = config.get(current_env_section, "framework", "")
240-
# Split comma-separated frameworks and return them as a list
241239
return frameworks
242-
# If no frameworks are found, return an empty list
243240
return []
244241

245242
current_env_frameworks = get_frameworks_in_current_env()
246-
print("Frameworks in the current environment:", current_env_frameworks)
247243
if "arduino" in current_env_frameworks and "espidf" in current_env_frameworks:
248-
# Arduino as component is set as config, switch off Hybrid compile
244+
# Arduino as component is set, switch off Hybrid compile
249245
flag_custom_sdkconfig = False
250246

251247
def call_compile_libs():

0 commit comments

Comments
 (0)