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
1 changed files with 1 additions and 4 deletions

View File

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