From f03df0b280d5b6abd7c02b0a2434369bf76abffb Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Thu, 10 Feb 2022 09:37:08 +0100 Subject: [PATCH] Add MEGA_P feature toggle (just in case, the implementation is used by another printer) --- Marlin/src/lcd/anycubic_touchscreen.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Marlin/src/lcd/anycubic_touchscreen.cpp b/Marlin/src/lcd/anycubic_touchscreen.cpp index db43d66c..3321a0e6 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/anycubic_touchscreen.cpp @@ -2287,6 +2287,8 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() { } break; #endif + + #if ENABLED(KNUTWURST_MEGA_P) case 51: if (CodeSeen('H')) { queue.enqueue_now_P(PSTR("G1 Z5 F500")); @@ -2311,9 +2313,11 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() { else if (CodeSeen('L')) { queue.enqueue_now_P(PSTR("G1 X100 Y100 Z50 F5000")); } - break; + break; + #endif + default: - break; + break; } } TFTbufindw = (TFTbufindw + 1)%TFTBUFSIZE;