From cc2eac15a0d23983becadf37f8eda0176e90e3c3 Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Sun, 19 Apr 2020 16:55:19 +0200 Subject: [PATCH] Try M29 without check sum first --- esp3d/config.h | 2 +- esp3d/syncwebserver.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esp3d/config.h b/esp3d/config.h index 9798eea7..a03086db 100644 --- a/esp3d/config.h +++ b/esp3d/config.h @@ -19,7 +19,7 @@ */ //version and sources location -#define FW_VERSION "2.1.1.b5" +#define FW_VERSION "2.1.1.b6" #define REPOSITORY "https://github.com/luc-github/ESP3D" //Customize ESP3D //////////////////////////////////////////////////////////////////////// diff --git a/esp3d/syncwebserver.cpp b/esp3d/syncwebserver.cpp index dc772325..3b31e2e3 100644 --- a/esp3d/syncwebserver.cpp +++ b/esp3d/syncwebserver.cpp @@ -1230,10 +1230,10 @@ void SDFile_serial_upload() if (CONFIG::GetFirmwareTarget() == SMOOTHIEWARE)resetcmd = "N0 M110"; lineNb=1; //close any ongoing upload and get current line number - if(!sendLine2Serial (command,1, &lineNb)){ + if(!sendLine2Serial (command,-1, &lineNb)){ //it can failed for repetier if ( ( CONFIG::GetFirmwareTarget() == REPETIER4DV) || (CONFIG::GetFirmwareTarget() == REPETIER) ) { - if(!sendLine2Serial (command,-1, NULL)){ + if(!sendLine2Serial (command,1, NULL)){ log_esp3d("Upload start failed"); web_interface->_upload_status= UPLOAD_STATUS_FAILED; pushError(ESP_ERROR_START_UPLOAD, "Upload rejected");