Add debug define

This commit is contained in:
Knutwurst
2020-07-26 13:19:59 +02:00
parent 3c2d6f7965
commit d70a585be8
2 changed files with 3 additions and 1 deletions

View File

@@ -685,12 +685,14 @@ void AnycubicTouchscreenClass::PrintList()
for (count = filenumber; count <= max_files; count++)
{
#ifdef ANYCUBIC_TFT_DEBUG
SERIAL_ECHOPGM("filenumber: ");
SERIAL_ECHOLN(filenumber);
SERIAL_ECHOPGM("max_files: ");
SERIAL_ECHOLN(max_files);
SERIAL_ECHOPGM("count: ");
SERIAL_ECHOLN(count);
#endif
if (count == 0) // Special Entry
{

View File

@@ -34,7 +34,7 @@ char *ftostr32(const float &);
#define TFTBUFSIZE 4
#define TFT_MAX_CMD_SIZE 96
#define MSG_MY_VERSION "Knutwurst-1.0.7"
#define MAX_PRINTABLE_FILENAME_LEN 64
#define MAX_PRINTABLE_FILENAME_LEN 96
#define ANYCUBIC_TFT_STATE_IDLE 0
#define ANYCUBIC_TFT_STATE_SDPRINT 1