Skip to content

Commit 5d3e4c1

Browse files
author
Federico Fissore
committed
Compiler: merge sketch must look for the bootloader file under runtime.platform.path, not build.platform.path. Fixes arduino#3395
1 parent 7f2fc71 commit 5d3e4c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-core/src/processing/app/debug/Compiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ private File mergeSketchWithBootloaderIfAppropriate(String className, Preference
12031203
bootloaderNoBlink = prefs.get("bootloader.file");
12041204
}
12051205

1206-
File bootloader = new File(new File(prefs.get("build.platform.path"), "bootloaders"), bootloaderNoBlink);
1206+
File bootloader = new File(new File(prefs.get("runtime.platform.path"), "bootloaders"), bootloaderNoBlink);
12071207
if (!bootloader.exists()) {
12081208
System.err.println(I18n.format(_("Bootloader file specified but missing: {0}"), bootloader));
12091209
return null;

0 commit comments

Comments
 (0)