1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-30 19:52:13 +01:00

Now passing config file path to avrdude.

This commit is contained in:
David A. Mellis 2007-06-26 23:35:32 +00:00
parent 931f3f49f7
commit d0352ac988

View File

@ -120,8 +120,21 @@ public class AvrdudeUploader extends Uploader {
public boolean uisp(Collection params) throws RunnerException {
flushSerialBuffer();
String userdir = System.getProperty("user.dir") + File.separator;
String avrBasePath;
if(Base.isMacOS()) {
avrBasePath = new String("tools/avr/etc/");
}
else if(Base.isLinux()) {
avrBasePath = new String("");
}
else {
avrBasePath = new String(userdir + "tools/avr/etc/");
}
List commandDownloader = new ArrayList();
commandDownloader.add("avrdude");
commandDownloader.add("-C" + avrBasePath + File.separator + "avrdude.conf");
if (Preferences.getBoolean("upload.verbose")) {
commandDownloader.add("-v");
commandDownloader.add("-v");