File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ def load_custom_sdkconfig_file():
238
238
print (f"Path Traversal detected: { url } check your URL path" )
239
239
else :
240
240
try :
241
- response = requests .get (file_entry .split (" " )[0 ])
241
+ response = requests .get (file_entry .split (" " )[0 ], timeout = 10 )
242
242
if response .ok :
243
243
return response .content .decode ('utf-8' )
244
244
except requests .RequestException as e :
@@ -318,6 +318,9 @@ def add_flash_configuration(config_flags):
318
318
return config_flags
319
319
320
320
def write_sdkconfig_file (idf_config_flags , checksum_source ):
321
+ if "arduino" not in env .subst ("$PIOFRAMEWORK" ):
322
+ print ("Error: Arduino framework required for sdkconfig processing" )
323
+ return
321
324
"""Write the final sdkconfig.defaults file with checksum."""
322
325
sdkconfig_src = join (arduino_libs_mcu , "sdkconfig" )
323
326
sdkconfig_dst = join (PROJECT_DIR , "sdkconfig.defaults" )
You can’t perform that action at this time.
0 commit comments