File tree 1 file changed +7
-7
lines changed
arduino-core/src/processing/app/debug
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1159,15 +1159,15 @@ void saveHex() throws RunnerException {
1159
1159
dict .put ("ide_version" , "" + BaseNoGui .REVISION );
1160
1160
1161
1161
try {
1162
- String tmp_file = prefs .getOrExcept ("recipe.output.tmp_file" );
1163
- tmp_file = StringReplacer .replaceFromMapping (tmp_file , dict );
1164
- String save_file = prefs .getOrExcept ("recipe.output.save_file" );
1165
- save_file = StringReplacer .replaceFromMapping (save_file , dict );
1162
+ String compiledSketch = prefs .getOrExcept ("recipe.output.tmp_file" );
1163
+ compiledSketch = StringReplacer .replaceFromMapping (compiledSketch , dict );
1164
+ String copyOfCompiledSketch = prefs .getOrExcept ("recipe.output.save_file" );
1165
+ copyOfCompiledSketch = StringReplacer .replaceFromMapping (copyOfCompiledSketch , dict );
1166
1166
1167
- File hexFile = new File (prefs .get ("build.path" ) + "/" + tmp_file );
1168
- File saveFile = new File (sketch .getFolder (). getAbsolutePath () + "/" + save_file );
1167
+ File compiledSketchFile = new File (prefs .get ("build.path" ), compiledSketch );
1168
+ File copyOfCompiledSketchFile = new File (sketch .getFolder (), copyOfCompiledSketch );
1169
1169
1170
- FileUtils .copyFile (hexFile , saveFile );
1170
+ FileUtils .copyFile (compiledSketchFile , copyOfCompiledSketchFile );
1171
1171
} catch (Exception e ) {
1172
1172
throw new RunnerException (e );
1173
1173
}
You can’t perform that action at this time.
0 commit comments