Skip to content

Commit bf3fc88

Browse files
author
Federico Fissore
committed
Compiler: compiled sketch discovery was missing merged sketch
1 parent 974fef1 commit bf3fc88

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,14 @@ static public boolean upload(SketchData data, Uploader uploader, String buildPat
182182
}
183183

184184
static public File findCompiledSketch(PreferencesMap prefs) throws PreferencesMapException {
185-
List<String> paths = Arrays.asList("{build.path}/{build.project_name}.hex", "{build.path}/{build.project_name}.bin");
185+
List<String> paths = Arrays.asList(
186+
"{build.path}/sketch/{build.project_name}.with_bootloader.hex",
187+
"{build.path}/sketch/{build.project_name}.hex",
188+
"{build.path}/{build.project_name}.with_bootloader.hex",
189+
"{build.path}/{build.project_name}.hex",
190+
"{build.path}/sketch/{build.project_name}.bin",
191+
"{build.path}/{build.project_name}.bin"
192+
);
186193
Optional<File> sketch = paths.stream().
187194
map(path -> StringReplacer.replaceFromMapping(path, prefs)).
188195
map(File::new).

0 commit comments

Comments
 (0)