Skip to content

Commit 2f8fbcb

Browse files
authored
correct check for not existing env
1 parent 95f9c2e commit 2f8fbcb

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
@@ -600,8 +600,9 @@ def has_unicore_flags():
600600

601601
# Esp32-solo1 libs settings
602602
if flag_custom_sdkconfig and has_unicore_flags():
603-
if len(str(env.GetProjectOption("build_unflags"))) == 2: # No valid env, needs init
604-
env['BUILD_UNFLAGS'] = {}
603+
build_unflags = env.GetProjectOption("build_unflags")
604+
if not build_unflags: # not existing needs init
605+
env['BUILD_UNFLAGS'] = []
605606

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

0 commit comments

Comments
 (0)