Skip to content

Commit 6e7c3c2

Browse files
authored
add auto select "espidf" when pio var "custom_sdkconfig" is set
1 parent 9937b11 commit 6e7c3c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

platform.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def configure_default_packages(self, variables, targets):
3939
mcu = variables.get("board_build.mcu", board_config.get("build.mcu", "esp32"))
4040
frameworks = variables.get("pioframework", [])
4141

42+
if variables.get("custom_sdkconfig") is not None:
43+
frameworks.append("espidf")
44+
4245
if "arduino" in frameworks:
4346
self.packages["framework-arduinoespressif32"]["optional"] = False
4447
self.packages["framework-arduinoespressif32-libs"]["optional"] = False

0 commit comments

Comments
 (0)