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 @@ -292,13 +292,15 @@ func runProgramAction(pm *packagemanager.PackageManager,
292292 // to set the board in bootloader mode
293293 actualPort := port
294294 if programmer == nil && ! burnBootloader {
295- // Perform reset via 1200bps touch if requested and wait for upload port if requested.
296295
296+ // Perform reset via 1200bps touch if requested and wait for upload port also if requested.
297297 touch := uploadProperties .GetBoolean ("upload.use_1200bps_touch" )
298- wait := uploadProperties . GetBoolean ( "upload.wait_for_upload_port" )
298+ wait := false
299299 portToTouch := ""
300300 if touch {
301301 portToTouch = port
302+ // Waits for upload port only if a 1200bps touch is done
303+ wait = uploadProperties .GetBoolean ("upload.wait_for_upload_port" )
302304 }
303305
304306 // if touch is requested but port is not specified, print a warning
You can’t perform that action at this time.
0 commit comments