Skip to content

Commit 4c3de26

Browse files
author
Federico Fissore
committed
Don't export sketch if the underlying core does not support it. Fixes #3171
1 parent 19aa7ed commit 4c3de26

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,11 @@ void runRecipe(String recipe) throws RunnerException, PreferencesMapException {
11551155

11561156
//7. Save the .hex file
11571157
void saveHex() throws RunnerException {
1158+
if (!prefs.containsKey("recipe.output.tmp_file") || !prefs.containsKey("recipe.output.save_file")) {
1159+
System.err.println(_("Warning: This core does not support exporting sketches. Please consider upgrading it or contacting its author"));
1160+
return;
1161+
}
1162+
11581163
PreferencesMap dict = new PreferencesMap(prefs);
11591164
dict.put("ide_version", "" + BaseNoGui.REVISION);
11601165

0 commit comments

Comments
 (0)