diff --git a/src/main/java/ESPlorer/ESPlorer.java b/src/main/java/ESPlorer/ESPlorer.java index 79a3d41..63d1914 100644 --- a/src/main/java/ESPlorer/ESPlorer.java +++ b/src/main/java/ESPlorer/ESPlorer.java @@ -12707,9 +12707,6 @@ private void UploadFilesStart() { } log("sendPackets=" + Integer.toString(sendPackets.size())); String cmd = "_up=function(n,l,ll)\n" - + " if node.chipmodel then\n" - + " uart.start(0)\n" - + " end\n" + " local cs = 0\n" + " local i = 0\n" + " local open = file.open or io.open\n" @@ -12733,7 +12730,7 @@ private void UploadFilesStart() { + " end,0)\n" + "end\n" + "if node.chipmodel then\n" - + " uart.stop(0)\n" + + " uart.start(0)\n" + "end\n" + "file.remove(\"" + UploadFileName + "\")\n"; sendBuf = cmdPrep(cmd); @@ -12935,7 +12932,7 @@ public void serialEvent(SerialPortEvent event) { } if (j >= (sendBuf.size() + sendPackets.size())) { LocalEcho = false; - send(addCR("_up=nil"), false); + send(addCR("_up=nil if node.chipmodel then uart.stop(0)end"), false); try { timer.stop(); } catch (Exception e) {