Skip to content

Commit 83351b3

Browse files
committed
Perform 1200bps-touch only on serial ports
1 parent 272e35d commit 83351b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/upload/upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ func runProgramAction(pm *packagemanager.PackageManager,
369369
// If not using programmer perform some action required
370370
// to set the board in bootloader mode
371371
actualPort := port
372-
if programmer == nil && !burnBootloader {
372+
if programmer == nil && !burnBootloader && port.Protocol == "serial" {
373373

374374
// Perform reset via 1200bps touch if requested and wait for upload port also if requested.
375375
touch := uploadProperties.GetBoolean("upload.use_1200bps_touch")

0 commit comments

Comments
 (0)