From 806737d701a6c4ea19e2f783bb8bd9a72b80224d Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Wed, 3 Nov 2021 20:47:48 +0100 Subject: [PATCH] Disable unused 4MAX powerdown code --- Marlin/src/lcd/anycubic_touchscreen.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Marlin/src/lcd/anycubic_touchscreen.cpp b/Marlin/src/lcd/anycubic_touchscreen.cpp index a2dd4d2a..55a99548 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/anycubic_touchscreen.cpp @@ -2302,18 +2302,18 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() { } #endif -void PowerDown() -{ - for(unsigned char i=0; i<3 ; i++) - { - WRITE(POWER_OFF_PIN,LOW); - delay(10); - WRITE(POWER_OFF_PIN,HIGH); - delay(10); - } -} +#if ANY(KNUTWURST_4MAX, KNUTWURST_4MAXP2) + void PowerDown() { + for(unsigned char i=0; i<3 ; i++) { + WRITE(POWER_OFF_PIN,LOW); + delay(10); + WRITE(POWER_OFF_PIN,HIGH); + delay(10); + } + } +#endif -void AnycubicTouchscreenClass::CommandScan(){ +void AnycubicTouchscreenClass::CommandScan() { CheckHeaterError(); CheckSDCardChange(); StateHandler();