File tree 1 file changed +4
-2
lines changed
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,
292
292
// to set the board in bootloader mode
293
293
actualPort := port
294
294
if programmer == nil && ! burnBootloader {
295
- // Perform reset via 1200bps touch if requested and wait for upload port if requested.
296
295
296
+ // Perform reset via 1200bps touch if requested and wait for upload port also if requested.
297
297
touch := uploadProperties .GetBoolean ("upload.use_1200bps_touch" )
298
- wait := uploadProperties . GetBoolean ( "upload.wait_for_upload_port" )
298
+ wait := false
299
299
portToTouch := ""
300
300
if touch {
301
301
portToTouch = port
302
+ // Waits for upload port only if a 1200bps touch is done
303
+ wait = uploadProperties .GetBoolean ("upload.wait_for_upload_port" )
302
304
}
303
305
304
306
// if touch is requested but port is not specified, print a warning
You can’t perform that action at this time.
0 commit comments