Skip to content

Commit fcee7b3

Browse files
authored
fix solo1 compile
1 parent 0cc5b8e commit fcee7b3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

builder/frameworks/arduino.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def safe_remove_sdkconfig_files():
370370
entry_custom_sdkconfig = env.GetProjectOption("custom_sdkconfig")
371371
flag_custom_sdkconfig = True
372372

373-
if len(board_sdkconfig) > 2:
373+
if board_sdkconfig:
374374
flag_custom_sdkconfig = True
375375

376376
extra_flags_raw = board.get("build.extra_flags", [])
@@ -395,8 +395,9 @@ def has_unicore_flags():
395395

396396
# Esp32-solo1 libs settings
397397
if flag_custom_sdkconfig and has_unicore_flags():
398-
if len(str(env.GetProjectOption("build_unflags"))) == 2: # No valid env, needs init
399-
env['BUILD_UNFLAGS'] = {}
398+
build_unflags = env.GetProjectOption("build_unflags")
399+
if not build_unflags: # not existing needs init
400+
env['BUILD_UNFLAGS'] = []
400401

401402
build_unflags = " ".join(env['BUILD_UNFLAGS']) + " -mdisable-hardware-atomics -ustart_app_other_cores"
402403
new_build_unflags = build_unflags.split()

0 commit comments

Comments
 (0)