Skip to content

Commit a9744d6

Browse files
authored
Update arduino.py
1 parent 523f970 commit a9744d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

builder/frameworks/arduino.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,19 +536,21 @@ def safe_remove_sdkconfig_files():
536536
pm = ToolPackageManager()
537537
platform = env.PioPlatform()
538538
config = env.GetProjectConfig()
539-
print("******* config", config)
540539
board = env.BoardConfig()
540+
print("******* board", board)
541+
541542

542543
# Cached values
543544
mcu = board.get("build.mcu", "esp32")
544545
pioenv = env["PIOENV"]
545546
project_dir = env.subst("$PROJECT_DIR")
546547
path_cache = PathCache(platform, mcu)
547-
current_env_section = "env:"+env["PIOENV"]
548+
current_env_section = "env:"+pioenv
548549

549550

550551
# Board configuration
551552
board_sdkconfig = board.get("espidf.custom_sdkconfig", "")
553+
print("****** board sdkconfig:", board_sdkconfig)
552554
entry_custom_sdkconfig = "\n"
553555
flag_custom_sdkconfig = False
554556
flag_custom_component_remove = False
@@ -567,6 +569,7 @@ def safe_remove_sdkconfig_files():
567569
flag_custom_component_remove = True
568570

569571
if config.has_option("env:"+env["PIOENV"], "custom_sdkconfig"):
572+
print("entry custom_sdkconfig", entry_custom_sdkconfig)
570573
entry_custom_sdkconfig = env.GetProjectOption("custom_sdkconfig")
571574
flag_custom_sdkconfig = True
572575

0 commit comments

Comments
 (0)