Skip to content

Commit b42fb25

Browse files
authored
Fix condition check for esp32c2 and esp32c61
1 parent 0a6cf98 commit b42fb25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/frameworks/espidf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def create_silent_action(action_func):
182182
ARDUINO_FRMWRK_LIB_DIR_PATH = arduino_lib_dir.resolve()
183183
ARDUINO_FRMWRK_LIB_DIR = str(ARDUINO_FRMWRK_LIB_DIR_PATH)
184184

185-
if mcu == "esp32c2" and not ("espidf" in pio_orig_frwrk):
185+
if mcu == "esp32c2" and "espidf" not in pio_orig_frwrk:
186186
ARDUINO_FRMWRK_C2_LIB_DIR = str(ARDUINO_FRMWRK_LIB_DIR_PATH / chip_variant)
187187
if not os.path.exists(ARDUINO_FRMWRK_C2_LIB_DIR):
188188
_arduino_c2_dir = platform.get_package_dir("framework-arduino-c2-skeleton-lib")
@@ -193,7 +193,7 @@ def create_silent_action(action_func):
193193
ARDUINO_C2_DIR = str(arduino_c2_dir / chip_variant)
194194
shutil.copytree(ARDUINO_C2_DIR, ARDUINO_FRMWRK_C2_LIB_DIR, dirs_exist_ok=True)
195195

196-
if mcu == "esp32c61" and not ("espidf" in pio_orig_frwrk):
196+
if mcu == "esp32c61" and "espidf" not in pio_orig_frwrk:
197197
ARDUINO_FRMWRK_C61_LIB_DIR = str(ARDUINO_FRMWRK_LIB_DIR_PATH / chip_variant)
198198
if not os.path.exists(ARDUINO_FRMWRK_C61_LIB_DIR):
199199
_arduino_c61_dir = platform.get_package_dir("framework-arduino-c61-skeleton-lib")

0 commit comments

Comments
 (0)