1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Avrdude isn't using cygwin, so it uses normal COM1 device names, not /dev/com1

This commit is contained in:
David A. Mellis 2007-07-19 01:32:18 +00:00
parent 3d1ebb5e64
commit 30537b36b9

View File

@ -54,10 +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" + (Base.isWindows() ?
"/dev/" + Preferences.get("serial.port").toLowerCase() :
Preferences.get("serial.port")));
commandDownloader.add("-P" + Preferences.get("serial.port"));
commandDownloader.add(
"-b" + Preferences.getInteger("serial.download_rate"));
}