Skip to content

Commit 19ab750

Browse files
authored
Update arduino.py
1 parent cdcb5c2 commit 19ab750

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builder/frameworks/arduino.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ def safe_remove_sdkconfig_files():
355355
flag_custom_component_add = False
356356
flag_lib_ignore = False
357357

358+
if mcu == "esp32c2":
359+
flag_custom_sdkconfig = True
360+
358361
# pio lib_ignore check
359362
if config.has_option(current_env_section, "lib_ignore"):
360363
flag_lib_ignore = True
@@ -681,8 +684,6 @@ def get_frameworks_in_current_env():
681684
logging.error("Framework cleanup failed - installation aborted")
682685
sys.exit(1)
683686

684-
if mcu == "esp32c2":
685-
flag_custom_sdkconfig = True
686687
if flag_custom_sdkconfig and not flag_any_custom_sdkconfig:
687688
call_compile_libs()
688689

0 commit comments

Comments
 (0)