From ad86d96a3132967de60fc97e3307b0ac4e9c5343 Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Tue, 30 May 2023 09:22:25 +0200 Subject: [PATCH] Cleanup --- .../src/lcd/extui/knutwurst/anycubic_touchscreen.cpp | 1 - .../src/lcd/extui/knutwurst/anycubic_touchscreen.h | 12 +++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp b/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp index 6ffd9e1e..fbc3e0f6 100755 --- a/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp @@ -193,7 +193,6 @@ BLTouchMenu = false; LevelMenu = false; CaseLight = false; - MyFileNrCnt = 0; currentFlowRate = 100; flowRateBuffer = SM_FLOW_DISP_L; diff --git a/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.h b/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.h index 095bd37e..945700fa 100755 --- a/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.h +++ b/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.h @@ -42,14 +42,6 @@ char *itostr2(const uint8_t &x); #define MSG_MY_VERSION CUSTOM_BUILD_VERSION #define MAX_PRINTABLE_FILENAME_LEN 26 -#define ANYCUBIC_TFT_STATE_IDLE 0 -#define ANYCUBIC_TFT_STATE_SDPRINT 1 -#define ANYCUBIC_TFT_STATE_SDPAUSE 2 -#define ANYCUBIC_TFT_STATE_SDPAUSE_REQ 3 -#define ANYCUBIC_TFT_STATE_SDPAUSE_OOF 4 -#define ANYCUBIC_TFT_STATE_SDSTOP_REQ 5 -#define ANYCUBIC_TFT_STATE_SDOUTAGE 99 - enum AnycubicMediaPrintState { AMPRINTSTATE_NOT_PRINTING, AMPRINTSTATE_PRINTING, @@ -253,6 +245,7 @@ enum AnycubicMediaPauseState { #endif class AnycubicTouchscreenClass { + public: AnycubicTouchscreenClass(); @@ -267,9 +260,11 @@ void KillTFT(); static void OnPrintTimerStarted(); static void OnPrintTimerPaused(); static void OnPrintTimerStopped(); + #if BOTH(ANYCUBIC_TFT_DEBUG, KNUTWURST_DGUS2_TFT) void Command(const char * const command); #endif + #if ENABLED(KNUTWURST_TFT_LEVELING) void LevelingDone(); #endif @@ -332,7 +327,6 @@ char currentTouchscreenSelection[64]; char currentFileOrDirectory[64]; String flowRateBuffer; String zOffsetBuffer; -uint16_t MyFileNrCnt = 0; uint8_t FilamentSensorEnabled = true; uint8_t SpecialMenu = false;