mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Adding funky \\.\ prefix to serial port names on Windows to support ports COM10 and higher.
This commit is contained in:
parent
13df8fb11e
commit
0204d39044
@ -54,7 +54,7 @@ public class AvrdudeUploader extends Uploader {
|
|||||||
// avrdude doesn't need to be told the address of the parallel port
|
// avrdude doesn't need to be told the address of the parallel port
|
||||||
//commandDownloader.add("-dlpt=" + Preferences.get("parallel.port"));
|
//commandDownloader.add("-dlpt=" + Preferences.get("parallel.port"));
|
||||||
} else {
|
} else {
|
||||||
commandDownloader.add("-P" + Preferences.get("serial.port"));
|
commandDownloader.add("-P" + (Base.isWindows() ? "\\\\.\\" : "") + Preferences.get("serial.port"));
|
||||||
commandDownloader.add(
|
commandDownloader.add(
|
||||||
"-b" + Preferences.getInteger("boards." + Preferences.get("board") + ".upload.speed"));
|
"-b" + Preferences.getInteger("boards." + Preferences.get("board") + ".upload.speed"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user