Skip to content

Commit 0e04676

Browse files
committed
CLI: fixed missing "runtime.platform.path"
This happens when the CLI is runned without the `--board` option. Fix arduino#6463
1 parent cbbac9d commit 0e04676

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/src/processing/app/Base.java

+4
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ public Base(String[] args) throws Exception {
261261
if (!isCommandLine()) {
262262
rebuildBoardsMenu();
263263
rebuildProgrammerMenu();
264+
} else {
265+
TargetBoard lastSelectedBoard = BaseNoGui.getTargetBoard();
266+
if (lastSelectedBoard != null)
267+
BaseNoGui.selectBoard(lastSelectedBoard);
264268
}
265269

266270
// Setup board-dependent variables.

build/shared/revisions.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ARDUINO 1.8.4
33
[ide]
44
* Environment variable LIBRARY_INDEX_URL is now correctly parsed (LIBRARY_INDEX_URL_GZ can also be optinally specified). Thanks @xardael
55
* Added per-board generic option in config file boards.txt for disabling control of dtr+rts. Thanks @d-a-v
6+
* CLI: fixed missing "runtime.platform.path" when running without the `--board` option
67

78
ARDUINO 1.8.3 2017.05.31
89

0 commit comments

Comments
 (0)