Add original anycubic stuff for tft serial handling including serial flush in case of error.

This commit is contained in:
Knutwurst
2020-07-20 21:10:44 +02:00
parent d88d98d691
commit 1c3f1e9ada
4 changed files with 134 additions and 60 deletions

View File

@@ -33,7 +33,7 @@ char *ftostr32(const float &);
#define TFTBUFSIZE 4
#define TFT_MAX_CMD_SIZE 96
#define MSG_MY_VERSION "Knutwurst-1.0.5"
#define MSG_MY_VERSION "Knutwurst-1.0.7"
#define ANYCUBIC_TFT_STATE_IDLE 0
#define ANYCUBIC_TFT_STATE_SDPRINT 1
@@ -119,6 +119,7 @@ private:
char currentFileOrDirectory[30];
uint8_t SpecialMenu = false;
uint8_t FilamentSensorEnabled = true;
#if ENABLED(ANYCUBIC_FILAMENT_RUNOUT_SENSOR)
char FilamentTestStatus = false;