Skip to content

Commit d4f31df

Browse files
authored
Fix upload waiting for port without 1200bps touch (#1319)
1 parent 16f4135 commit d4f31df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: commands/upload/upload.go

+4-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)