File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1554,6 +1554,10 @@ private void selectBoard(TargetBoard targetBoard) {
1554
1554
Preferences .set ("target_platform" , targetPlatform .getId ());
1555
1555
Preferences .set ("board" , targetBoard .getId ());
1556
1556
1557
+ File platformFolder = targetPlatform .getFolder ();
1558
+ Preferences .set ("runtime.platform.path" , platformFolder .getAbsolutePath ());
1559
+ Preferences .set ("runtime.hardware.path" , platformFolder .getParentFile ().getAbsolutePath ());
1560
+
1557
1561
filterVisibilityOfSubsequentBoardMenus (targetBoard , 1 );
1558
1562
1559
1563
onBoardOrPortChange ();
Original file line number Diff line number Diff line change @@ -231,7 +231,6 @@ static protected void init(String commandLinePrefs) {
231
231
232
232
// set some runtime constants (not saved on preferences file)
233
233
File hardwareFolder = Base .getHardwareFolder ();
234
- table .put ("runtime.hardware.path" , hardwareFolder .getAbsolutePath ());
235
234
table .put ("runtime.ide.path" , hardwareFolder .getParentFile ().getAbsolutePath ());
236
235
table .put ("runtime.ide.version" , "" + Base .REVISION );
237
236
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" {erase.verbose} -p{bu
84
84
85
85
tools.avrdude.bootloader.params.verbose=-v -v -v -v
86
86
tools.avrdude.bootloader.params.quiet=-q -q
87
- tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.ide .path}/hardware/arduino/avr /bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
87
+ tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.platform .path}/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
88
88
89
89
90
90
# USB Default Flags
You can’t perform that action at this time.
0 commit comments