Skip to content

Commit 8fbb13b

Browse files
authored
Update arduino.py
1 parent 472d387 commit 8fbb13b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builder/frameworks/arduino.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272

7373
if mcu == "esp32c2":
7474
ARDUINO_FRMWRK_LIB_DIR = platform.get_package_dir("framework-arduinoespressif32-libs")
75-
ARDUINO_C2_LIB_DIR = platform.get_package_dir("framework-arduino-c2-skeleton-lib")
75+
ARDUINO_C2_DIR = join(platform.get_package_dir("framework-arduino-c2-skeleton-lib"),mcu)
7676
print("Arduino Lib Dir:", ARDUINO_FRMWRK_LIB_DIR)
77-
print("Arduino C2 Lib Dir:", ARDUINO_C2_LIB_DIR)
78-
shutil.copytree(ARDUINO_C2_LIB_DIR, ARDUINO_FRMWRK_LIB_DIR, dirs_exist_ok=True)
77+
print("Arduino C2 Lib Dir:", ARDUINO_C2_DIR)
78+
shutil.copytree(ARDUINO_C2_DIR, ARDUINO_FRMWRK_LIB_DIR, dirs_exist_ok=True)
7979

8080
def install_python_deps():
8181
def _get_installed_pip_packages():

0 commit comments

Comments
 (0)