File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2749,7 +2749,7 @@ def detect(reset=False, sterm=False):
2749
2749
with cd (program .path ):
2750
2750
tools_dir = program .get_tools_dir ()
2751
2751
2752
- if tools_dir :
2752
+ if tools_dir and not ( reset or sterm ) :
2753
2753
# Prepare environment variables
2754
2754
env = program .get_env ()
2755
2755
@@ -2762,7 +2762,9 @@ def detect(reset=False, sterm=False):
2762
2762
if very_verbose :
2763
2763
error (str (e ))
2764
2764
else :
2765
- warning ("The mbed OS tools were not found in \" %s\" . \n Limited information will be shown about connected mbed targets/boards" % program .path )
2765
+ if not tools_dir :
2766
+ warning ("The mbed OS tools were not found in \" %s\" . \n Limited information will be shown about connected mbed targets/boards" % program .path )
2767
+
2766
2768
targets = program .get_detected_targets ()
2767
2769
if targets :
2768
2770
unknown_found = False
You can’t perform that action at this time.
0 commit comments