Skip to content

Commit a723fdb

Browse files
authored
Update ESP8266FS.java
May a fix for: esp8266/Arduino#6777
1 parent 33969c9 commit a723fdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ESP8266FS.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private void createAndUpload(){
219219
}
220220

221221
// Find upload.py, don't fail if not present for backwards compat
222-
File uploadPyFile = new File(platform.getFolder()+"/tools", "upload.py");
222+
File uploadPyFile = new File(platform.getFolder()+"/tools/esptool", "esptool.py");
223223
if (uploadPyFile.exists() && uploadPyFile.isFile()) {
224224
uploadCmd = uploadPyFile.getAbsolutePath();
225225
}
@@ -331,7 +331,7 @@ private void createAndUpload(){
331331
}
332332
System.out.println();
333333
if (!uploadCmd.isEmpty()) {
334-
sysExec(new String[]{pythonCmd, uploadCmd, "--chip", "esp8266", "--port", serialPort, "--baud", uploadSpeed, "write_flash", uploadAddress, imagePath, "--end"});
334+
sysExec(new String[]{pythonCmd, uploadCmd, "--chip", "esp8266", "--port", serialPort, "--baud", "460800", "write_flash", uploadAddress, imagePath});
335335
} else {
336336
sysExec(new String[]{esptool.getAbsolutePath(), "-cd", resetMethod, "-cb", uploadSpeed, "-cp", serialPort, "-ca", uploadAddress, "-cf", imagePath});
337337
}

0 commit comments

Comments
 (0)