Adding funky \\.\ prefix to serial port names on Windows to support ports COM10 and higher.

This commit is contained in:
David A. Mellis 2007-10-06 21:44:57 +00:00
parent 13df8fb11e
commit 0204d39044
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class AvrdudeUploader extends Uploader {
// avrdude doesn't need to be told the address of the parallel port
//commandDownloader.add("-dlpt=" + Preferences.get("parallel.port"));
} else {
commandDownloader.add("-P" + Preferences.get("serial.port"));
commandDownloader.add("-P" + (Base.isWindows() ? "\\\\.\\" : "") + Preferences.get("serial.port"));
commandDownloader.add(
"-b" + Preferences.getInteger("boards." + Preferences.get("board") + ".upload.speed"));
}