Skip to content

Commit 224ea38

Browse files
authored
Update espidf.py
1 parent 3db8ecf commit 224ea38

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

builder/frameworks/espidf.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,6 @@ 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-
with open(sdkconfig_src, 'r') as file:
240-
file_lines = file.readlines()
241-
for line in file_lines:
242-
print(line.strip())
243239

244240
def get_flag(line):
245241
if line.startswith("#") and "is not set" in line:
@@ -2046,8 +2042,8 @@ def idf_lib_copy(source, target, env):
20462042
for folder in src:
20472043
files = [join(folder,x) for x in os.listdir(folder)]
20482044
for file in files:
2049-
print("new lib file to copy:", file)
20502045
if file.strip().endswith(".a"):
2046+
print("new lib file to copy:", file)
20512047
shutil.copyfile(file,join(lib_dst,file.split(os.path.sep)[-1]))
20522048

20532049
shutil.move(join(lib_dst,"libspi_flash.a"),join(mem_var,"libspi_flash.a"))

0 commit comments

Comments
 (0)