@@ -232,14 +232,14 @@ private String waitForUploadPort(String uploadPort, List<String> before) throws
232232 return waitForUploadPort (uploadPort , before , verbose , 10000 );
233233 }
234234
235- private String waitForUploadPort (String uploadPort , List <String > before , boolean verbose , int timeout ) throws InterruptedException , RunnerException {
235+ private String waitForUploadPort (String uploadPort , List <String > before , boolean verboseDebug , int timeout ) throws InterruptedException , RunnerException {
236236 // Wait for a port to appear on the list
237237 int elapsed = 0 ;
238238 while (elapsed < timeout ) {
239239 List <String > now = Serial .list ();
240240 List <String > diff = new ArrayList <>(now );
241241 diff .removeAll (before );
242- if (verbose ) {
242+ if (verboseDebug ) {
243243 System .out .print ("PORTS {" );
244244 for (String p : before )
245245 System .out .print (p + ", " );
@@ -253,7 +253,7 @@ private String waitForUploadPort(String uploadPort, List<String> before, boolean
253253 }
254254 if (diff .size () > 0 ) {
255255 String newPort = diff .get (0 );
256- if (verbose )
256+ if (verboseDebug )
257257 System .out .println ("Found upload port: " + newPort );
258258 return newPort ;
259259 }
@@ -267,7 +267,7 @@ private String waitForUploadPort(String uploadPort, List<String> before, boolean
267267 // come back, so use a time out before assuming that the selected port is the
268268 // bootloader (not the sketch).
269269 if (elapsed >= 5000 && now .contains (uploadPort )) {
270- if (verbose )
270+ if (verboseDebug )
271271 System .out .println ("Uploading using selected port: " + uploadPort );
272272 return uploadPort ;
273273 }
0 commit comments