Skip to content

Commit 2c21e27

Browse files
authored
wrong order
1 parent e76ec09 commit 2c21e27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ def configure_default_packages(self, variables, targets):
101101
self.packages["framework-arduinoespressif32-libs"]["version"] = dyn_lib_url
102102

103103
if variables.get("custom_sdkconfig") is not None or len(str(board_sdkconfig)) > 3:
104-
frameworks.append("espidf")
105-
self.packages["framework-espidf"]["optional"] = False
106104
if (mcu == "esp32c2") and not ("espidf" in frameworks):
107105
self.packages["framework-arduino-c2-skeleton-lib"]["optional"] = False
106+
frameworks.append("espidf")
107+
self.packages["framework-espidf"]["optional"] = False
108108

109109
# packages for IDF and mixed Arduino+IDF projects
110110
if tl_flag and "espidf" in frameworks:

0 commit comments

Comments
 (0)