Skip to content

Commit 5d46279

Browse files
authored
revert defect refactored code
1 parent 898ffbe commit 5d46279

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

builder/frameworks/arduino.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ def setup_logging():
7171
if os.environ.get('ARDUINO_FRAMEWORK_ENABLE_LOGGING'):
7272
setup_logging()
7373

74-
# Constants for better performance
75-
UNICORE_FLAGS = {
76-
"CORE32SOLO1",
77-
"CONFIG_FREERTOS_UNICORE=y"
78-
}
79-
8074
# Thread-safe global flags to prevent message spam
8175
_PATH_SHORTENING_LOCK = threading.Lock()
8276
_PATH_SHORTENING_MESSAGES = {
@@ -588,13 +582,8 @@ def safe_remove_sdkconfig_files():
588582

589583
flag_any_custom_sdkconfig = exists(join(platform.get_package_dir("framework-arduinoespressif32-libs"),"sdkconfig"))
590584

591-
def has_unicore_flags():
592-
"""Check if any UNICORE flags are present in configuration"""
593-
return any(flag in extra_flags or flag in entry_custom_sdkconfig
594-
or flag in board_sdkconfig for flag in UNICORE_FLAGS)
595-
596585
# Esp32-solo1 libs settings
597-
if flag_custom_sdkconfig and has_unicore_flags():
586+
if flag_custom_sdkconfig == True and ("CORE32SOLO1" in extra_flags or "CONFIG_FREERTOS_UNICORE=y" in entry_custom_sdkconfig or "CONFIG_FREERTOS_UNICORE=y" in board_sdkconfig):
598587
build_unflags = env.GetProjectOption("build_unflags")
599588
if not build_unflags: # not existing needs init
600589
env['BUILD_UNFLAGS'] = []

0 commit comments

Comments
 (0)