8000 Update ESP8266FS.java · gnu-emu/arduino-esp8266fs-plugin@a723fdb · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 2 additions & 2 deletions
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)
0