Skip to content

Commit db28df9

Browse files
authored
Update platform.py
1 parent 1aaece9 commit db28df9

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
@@ -20,7 +20,6 @@
2020
import sys
2121
import shutil
2222
import logging
23-
from functools import lru_cache
2423
from typing import Optional, Dict, List, Any
2524

2625
from platformio.public import PlatformBase, to_unix_path
@@ -316,7 +315,8 @@ def _configure_espidf_framework(self, frameworks: List[str], variables: Dict, bo
316315
board_config.get("espidf.custom_sdkconfig", ""))
317316

318317
if custom_sdkconfig is not None or len(str(board_sdkconfig)) > 3:
319-
frameworks.append("espidf")
318+
if "espidf" not in frameworks:
319+
frameworks.append("espidf")
320320
self.packages["framework-espidf"]["optional"] = False
321321

322322
if mcu == "esp32c2":

0 commit comments

Comments
 (0)