Skip to content

Commit 112d3c3

Browse files
authored
Update espidf.py
1 parent b939c52 commit 112d3c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

builder/frameworks/espidf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ def get_MD5_hash(phrase):
236236
response = request.urlretrieve(sdkconfig_defconfig_url, defconfig_mcu)
237237
with open(defconfig_mcu, 'r') as f1, open(sdkconfig_mcu, 'a') as f2:
238238
f2.write(f1.read())
239-
239+
if mcu = "esp32c2":
240+
ARDUINO_C2_LIB_DIR = platform.get_package_dir("framework-arduino-c2-skeleton-lib")
241+
shutil.copytree(ARDUINO_C2_LIB_DIR, ARDUINO_FRMWRK_LIB_DIR, dirs_exist_ok=True)
242+
240243
def get_flag(line):
241244
if line.startswith("#") and "is not set" in line:
242245
return line.split(" ")[1]

0 commit comments

Comments
 (0)