Skip to content

Commit 68b2cee

Browse files
authored
Update espidf.py
1 parent 6d2e6fb commit 68b2cee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builder/frameworks/espidf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,12 @@ def get_MD5_hash(phrase):
229229
print("***** sdkconfig not existing, fetching from Arduino lib builder repo ****")
230230
os.makedirs(join(ARDUINO_FRMWRK_LIB_DIR,mcu))
231231
sdkconfig_common_url = "https://github.com/pioarduino/esp32-arduino-lib-builder/raw/refs/heads/release/v5.3/configs/defconfig.common"
232-
response = request.urlretrieve(sdkconfig_common_url, sdkconfig_src)
232+
sdkconfig_mcu = join(ARDUINO_FRMWRK_LIB_DIR,mcu,"sdkconfig")
233+
response = request.urlretrieve(sdkconfig_common_url, sdkconfig_mcu)
233234
sdkconfig_defconfig_url = "https://github.com/pioarduino/esp32-arduino-lib-builder/raw/refs/heads/release/v5.3/configs/defconfig." + mcu
234235
defconfig_mcu = join(ARDUINO_FRMWRK_LIB_DIR,mcu,"defconfig." + mcu)
235236
response = request.urlretrieve(sdkconfig_defconfig_url, defconfig_mcu)
236-
with open(defconfig_mcu, 'r') as f1, open(sdkconfig_src, 'w') as f2:
237+
with open(defconfig_mcu, 'r') as f1, open(sdkconfig_mcu, 'w') as f2:
237238
f2.write(f1.read())
238239
with open(sdkconfig_src, 'r') as file:
239240
file_lines = file.readlines()

0 commit comments

Comments
 (0)