Skip to content

Commit 890366b

Browse files
Update ESP8266FS.java
1 parent ee74245 commit 890366b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ESP8266FS.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ private void createAndUpload(){
263263
String dataPath = dataFolder.getAbsolutePath();
264264
String toolPath = tool.getAbsolutePath();
265265
String sketchName = editor.getSketch().getName();
266-
String sketchFldr = getBuildFolderPath(editor.getSketch().getFolder());
267266
String imagePath = getBuildFolderPath(editor.getSketch()) + "\\" + sketchName + ".spiffs.bin";
268267
String resetMethod = BaseNoGui.getBoardPreferences().get("upload.resetmethod");
269268
String uploadSpeed = BaseNoGui.getBoardPreferences().get("upload.speed");
@@ -304,7 +303,7 @@ private void createAndUpload(){
304303

305304
if(JOptionPane.showOptionDialog(editor, message, title, JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]) == JOptionPane.YES_OPTION){
306305
File source = new File(imagePath);
307-
File dest = new File(sketchFldr + "\\" + sketchName + ".spiffs.bin");
306+
File dest = new File(editor.getSketch().getFolder(),"\\" + sketchName + ".spiffs.bin");
308307
try {
309308
Files.copy(source.toPath(), dest.toPath(), StandardCopyOption.REPLACE_EXISTING);
310309
System.out.println("Copied SPIFFS image");

0 commit comments

Comments
 (0)