Skip to content

Commit

Permalink
Don't export sketch if the underlying core does not support it. Fixes e…
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Fissore committed May 18, 2015
1 parent 19aa7ed commit 4c3de26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arduino-core/src/processing/app/debug/Compiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,11 @@ void runRecipe(String recipe) throws RunnerException, PreferencesMapException {

//7. Save the .hex file
void saveHex() throws RunnerException {
if (!prefs.containsKey("recipe.output.tmp_file") || !prefs.containsKey("recipe.output.save_file")) {
System.err.println(_("Warning: This core does not support exporting sketches. Please consider upgrading it or contacting its author"));
return;
}

PreferencesMap dict = new PreferencesMap(prefs);
dict.put("ide_version", "" + BaseNoGui.REVISION);

Expand Down

0 comments on commit 4c3de26

Please sign in to comment.