File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -230,22 +230,18 @@ def shorthen_includes(env, node):
230
230
+ shortened_includes ,
231
231
)
232
232
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!
234
235
def get_frameworks_in_current_env ():
235
236
current_env_section = "env:" + env ["PIOENV" ]
236
- # Check if the "framework" option exists in the current environment
237
237
if "framework" in config .options (current_env_section ):
238
- # Get the value of the 'framework' option
239
238
frameworks = config .get (current_env_section , "framework" , "" )
240
- # Split comma-separated frameworks and return them as a list
241
239
return frameworks
242
- # If no frameworks are found, return an empty list
243
240
return []
244
241
245
242
current_env_frameworks = get_frameworks_in_current_env ()
246
- print ("Frameworks in the current environment:" , current_env_frameworks )
247
243
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
249
245
flag_custom_sdkconfig = False
250
246
251
247
def call_compile_libs ():
You can’t perform that action at this time.
0 commit comments