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:
parent
931f3f49f7
commit
d0352ac988
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user