Skip to content

Commit

Permalink
add auto select "espidf" when pio var "custom_sdkconfig" is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Sep 23, 2024
1 parent 9937b11 commit 6e7c3c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def configure_default_packages(self, variables, targets):
mcu = variables.get("board_build.mcu", board_config.get("build.mcu", "esp32"))
frameworks = variables.get("pioframework", [])

if variables.get("custom_sdkconfig") is not None:
frameworks.append("espidf")

if "arduino" in frameworks:
self.packages["framework-arduinoespressif32"]["optional"] = False
self.packages["framework-arduinoespressif32-libs"]["optional"] = False
Expand Down

0 comments on commit 6e7c3c2

Please sign in to comment.