Add option to disable Serial check sum

This commit is contained in:
Luc 2020-04-19 16:03:25 +02:00
parent 3291a90bf2
commit ae1c8bafae
2 changed files with 8 additions and 1 deletions

View File

@ -19,7 +19,7 @@
*/ */
//version and sources location //version and sources location
#define FW_VERSION "2.1.1.b4" #define FW_VERSION "2.1.1.b5"
#define REPOSITORY "https://github.com/luc-github/ESP3D" #define REPOSITORY "https://github.com/luc-github/ESP3D"
//Customize ESP3D //////////////////////////////////////////////////////////////////////// //Customize ESP3D ////////////////////////////////////////////////////////////////////////
@ -144,6 +144,9 @@
#define GRBL 6 #define GRBL 6
#define MAX_FW_ID 6 #define MAX_FW_ID 6
//For FW which has issue with checksum or not handling M110 properly///////
#define DISABLE_SERIAL_CHECKSUM
//Do not Edit after this line ////////////////////////////////////////////// //Do not Edit after this line //////////////////////////////////////////////
//DEBUG Flag do not do this when connected to printer !!! //DEBUG Flag do not do this when connected to printer !!!
@ -163,6 +166,7 @@
#if defined(ASYNCWEBSERVER) #if defined(ASYNCWEBSERVER)
#define ESP_USE_ASYNC true #define ESP_USE_ASYNC true
#error it no more supported
#else #else
#define ESP_USE_ASYNC false #define ESP_USE_ASYNC false
#endif #endif

View File

@ -163,6 +163,9 @@ bool sendLine2Serial (String & line, int32_t linenb, int32_t * newlinenb)
if ( CONFIG::GetFirmwareTarget() == SMOOTHIEWARE) { if ( CONFIG::GetFirmwareTarget() == SMOOTHIEWARE) {
sresend = "rs N"; sresend = "rs N";
} }
#ifdef DISABLE_SERIAL_CHECKSUM
linenb = -1;
#endif
if (linenb != -1) { if (linenb != -1) {
if ( ( CONFIG::GetFirmwareTarget() == REPETIER4DV) || (CONFIG::GetFirmwareTarget() == REPETIER) ) { if ( ( CONFIG::GetFirmwareTarget() == REPETIER4DV) || (CONFIG::GetFirmwareTarget() == REPETIER) ) {
sok+=" " + String(linenb); sok+=" " + String(linenb);