File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -232,8 +232,9 @@ def shorthen_includes(env, node):
232
232
def call_compile_libs ():
233
233
if mcu == "esp32c2" :
234
234
ARDUINO_FRMWRK_C2_LIB_DIR = join (platform .get_package_dir ("framework-arduinoespressif32-libs" ),mcu )
235
- ARDUINO_C2_DIR = join (platform .get_package_dir ("framework-arduino-c2-skeleton-lib" ),mcu )
236
- shutil .copytree (ARDUINO_C2_DIR , ARDUINO_FRMWRK_C2_LIB_DIR , dirs_exist_ok = True )
235
+ if not os .path .exists (ARDUINO_FRMWRK_C2_LIB_DIR ):
236
+ ARDUINO_C2_DIR = join (platform .get_package_dir ("framework-arduino-c2-skeleton-lib" ),mcu )
237
+ shutil .copytree (ARDUINO_C2_DIR , ARDUINO_FRMWRK_C2_LIB_DIR , dirs_exist_ok = True )
237
238
print ("*** Compile Arduino IDF libs for %s ***" % env ["PIOENV" ])
238
239
SConscript ("espidf.py" )
239
240
You can’t perform that action at this time.
0 commit comments