Clean dead code and disable debugging messages.
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
#include "../../../module/motion.h"
|
#include "../../../module/motion.h"
|
||||||
#include "../../../module/stepper.h"
|
#include "../../../module/stepper.h"
|
||||||
|
|
||||||
#define ANYCUBIC_TFT_DEBUG
|
//#define ANYCUBIC_TFT_DEBUG
|
||||||
//#define KNUTWURST_DGUS2_TFT
|
//#define KNUTWURST_DGUS2_TFT
|
||||||
//#define KNUTWURST_TFT_LEVELING
|
//#define KNUTWURST_TFT_LEVELING
|
||||||
|
|
||||||
@@ -138,7 +138,6 @@
|
|||||||
CheckHeaterError();
|
CheckHeaterError();
|
||||||
DoFilamentRunoutCheck();
|
DoFilamentRunoutCheck();
|
||||||
|
|
||||||
|
|
||||||
#ifdef STARTUP_CHIME
|
#ifdef STARTUP_CHIME
|
||||||
BUZZ(100, 554);
|
BUZZ(100, 554);
|
||||||
BUZZ(100, 740);
|
BUZZ(100, 740);
|
||||||
@@ -1110,46 +1109,6 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
TFTcmdbuffer[TFTbufindw][serial3_count] = 0; // terminate string
|
TFTcmdbuffer[TFTbufindw][serial3_count] = 0; // terminate string
|
||||||
|
|
||||||
if (!TFTcomment_mode) {
|
if (!TFTcomment_mode) {
|
||||||
/*
|
|
||||||
// -------- START ERROR CORRECTION ----------
|
|
||||||
TFTcomment_mode = false; //for new command
|
|
||||||
if (strchr(TFTcmdbuffer[TFTbufindw], 'N') != NULL)
|
|
||||||
{
|
|
||||||
if (strchr(TFTcmdbuffer[TFTbufindw], '*') != NULL)
|
|
||||||
{
|
|
||||||
byte checksum = 0;
|
|
||||||
byte count = 0;
|
|
||||||
while(TFTcmdbuffer[TFTbufindw][count] != '*') checksum = checksum^TFTcmdbuffer[TFTbufindw][count++];
|
|
||||||
TFTstrchr_pointer = strchr(TFTcmdbuffer[TFTbufindw], '*');
|
|
||||||
|
|
||||||
if ( (int)(strtod(&TFTcmdbuffer[TFTbufindw][TFTstrchr_pointer - TFTcmdbuffer[TFTbufindw] + 1], NULL)) != checksum)
|
|
||||||
{
|
|
||||||
SEND_PGM("ERR ");
|
|
||||||
LCD_SERIAL.flush();
|
|
||||||
SEND_PGM("ERR ");
|
|
||||||
LCD_SERIAL.flush();
|
|
||||||
serial3_count = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
//if no errors, continue parsing
|
|
||||||
} else {
|
|
||||||
SEND_PGM("ERR ");
|
|
||||||
LCD_SERIAL.flush();
|
|
||||||
serial3_count = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
//if no errors, continue parsing
|
|
||||||
} else { // if we don't receive 'N' but still see '*'
|
|
||||||
if ((strchr(TFTcmdbuffer[TFTbufindw], '*') != NULL))
|
|
||||||
{
|
|
||||||
SEND_PGM("ERR ");
|
|
||||||
serial3_count = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// -------- FINISH ERROR CORRECTION ----------
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ((strchr(TFTcmdbuffer[TFTbufindw], 'A') != NULL)) {
|
if ((strchr(TFTcmdbuffer[TFTbufindw], 'A') != NULL)) {
|
||||||
TFTstrchr_pointer = strchr(TFTcmdbuffer[TFTbufindw], 'A');
|
TFTstrchr_pointer = strchr(TFTcmdbuffer[TFTbufindw], 'A');
|
||||||
switch ((int)((strtod(&TFTcmdbuffer[TFTbufindw][TFTstrchr_pointer - TFTcmdbuffer[TFTbufindw] + 1], NULL)))) {
|
switch ((int)((strtod(&TFTcmdbuffer[TFTbufindw][TFTstrchr_pointer - TFTcmdbuffer[TFTbufindw] + 1], NULL)))) {
|
||||||
@@ -1222,7 +1181,6 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if (CodeSeen('S')) filenumber = CodeValue();
|
if (CodeSeen('S')) filenumber = CodeValue();
|
||||||
//PrintList();
|
|
||||||
RenderCurrentFileList();
|
RenderCurrentFileList();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user