mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Adding funky \\.\ prefix to serial port names on Windows to support ports COM10 and higher.
This commit is contained in:
@ -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"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user