Skip to content

Commit 0204d39

Browse files
committed
Adding funky \\.\ prefix to serial port names on Windows to support ports COM10 and higher.
1 parent 13df8fb commit 0204d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/AvrdudeUploader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public boolean uploadUsingPreferences(String buildPath, String className)
5454
// avrdude doesn't need to be told the address of the parallel port
5555
//commandDownloader.add("-dlpt=" + Preferences.get("parallel.port"));
5656
} else {
57-
commandDownloader.add("-P" + Preferences.get("serial.port"));
57+
commandDownloader.add("-P" + (Base.isWindows() ? "\\\\.\\" : "") + Preferences.get("serial.port"));
5858
commandDownloader.add(
5959
"-b" + Preferences.getInteger("boards." + Preferences.get("board") + ".upload.speed"));
6060
}

0 commit comments

Comments
 (0)