mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
It's now possible to specify additional custom board parameters when running the IDE from the command line
Eg: --board arduino:avr:pro:cpu=8MHzatmega168,other=value Closes #1353
This commit is contained in:
parent
8aab91c6ec
commit
26ff527ad2
@ -1473,9 +1473,18 @@ public class Base {
|
||||
String[] split = selectBoard.split(":");
|
||||
Preferences.set("target_package", split[0]);
|
||||
Preferences.set("target_platform", split[1]);
|
||||
Preferences.set("board", split[2]);
|
||||
String boardId = split[2];
|
||||
Preferences.set("board", boardId);
|
||||
|
||||
filterVisibilityOfSubsequentBoardMenus(split[2], 1);
|
||||
if (split.length > 3) {
|
||||
String[] customsParts = split[3].split(",");
|
||||
for (String customParts : customsParts) {
|
||||
String[] keyValue = customParts.split("=");
|
||||
Preferences.set("custom_" + keyValue[0].trim(), boardId + "_" + keyValue[1].trim());
|
||||
}
|
||||
}
|
||||
|
||||
filterVisibilityOfSubsequentBoardMenus(boardId, 1);
|
||||
|
||||
onBoardOrPortChange();
|
||||
Sketch.buildSettingChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user