Skip to content

Commit 898ffbe

Browse files
authored
revert refactor for solo1 detection
1 parent 2f8fbcb commit 898ffbe

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

builder/frameworks/arduino.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,7 @@ def validate_platformio_path(path: Union[str, Path]) -> bool:
427427
# Must be framework-related
428428
framework_indicators = [
429429
"framework-arduinoespressif32",
430-
"framework-arduinoespressif32-libs",
431-
"framework-arduino-c2-skeleton-lib"
430+
"framework-arduinoespressif32-libs"
432431
]
433432

434433
if not any(indicator in path_str for indicator in framework_indicators):
@@ -578,11 +577,7 @@ def safe_remove_sdkconfig_files():
578577
if len(board_sdkconfig) > 2:
579578
flag_custom_sdkconfig = True
580579

581-
extra_flags_raw = board.get("build.extra_flags", [])
582-
if isinstance(extra_flags_raw, list):
583-
extra_flags = " ".join(extra_flags_raw).replace("-D", " ")
584-
else:
585-
extra_flags = str(extra_flags_raw).replace("-D", " ")
580+
extra_flags = (''.join([element for element in board.get("build.extra_flags", "")])).replace("-D", " ")
586581

587582
framework_reinstall = False
588583

0 commit comments

Comments
 (0)