mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-07 01:54:26 +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 {
|
public boolean uisp(Collection params) throws RunnerException {
|
||||||
flushSerialBuffer();
|
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();
|
List commandDownloader = new ArrayList();
|
||||||
commandDownloader.add("avrdude");
|
commandDownloader.add("avrdude");
|
||||||
|
commandDownloader.add("-C" + avrBasePath + File.separator + "avrdude.conf");
|
||||||
if (Preferences.getBoolean("upload.verbose")) {
|
if (Preferences.getBoolean("upload.verbose")) {
|
||||||
commandDownloader.add("-v");
|
commandDownloader.add("-v");
|
||||||
commandDownloader.add("-v");
|
commandDownloader.add("-v");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user