Skip to content

Commit

Permalink
Update platform.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Jul 12, 2024
1 parent 91d1e3b commit 0031001
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,10 @@ def configure_default_packages(self, variables, targets):

board_config = self.board_config(variables.get("board"))
mcu = variables.get("board_build.mcu", board_config.get("build.mcu", "esp32"))
core_variant_board = ''.join(variables.get("board_build.extra_flags", board_config.get("build.extra_flags", "")))
core_variant_board = core_variant_board.replace("-D", " ")
core_variant_build = (''.join(variables.get("build_flags", []))).replace("-D", " ")
frameworks = variables.get("pioframework", [])

if "arduino" in frameworks:
if "CORE32SOLO1" in core_variant_board or "FRAMEWORK_ARDUINO_SOLO1" in core_variant_build:
self.packages["framework-arduino-solo1"]["optional"] = False
elif "CORE32ITEAD" in core_variant_board or "FRAMEWORK_ARDUINO_ITEAD" in core_variant_build:
self.packages["framework-arduino-ITEAD"]["optional"] = False
else:
self.packages["framework-arduinoespressif32"]["optional"] = False
self.packages["framework-arduinoespressif32"]["optional"] = False

if "buildfs" in targets:
filesystem = variables.get("board_build.filesystem", "littlefs")
Expand Down

0 comments on commit 0031001

Please sign in to comment.