From c8ffbe769b3ea2e66b92ca1e651f38cb904adaf7 Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Sat, 22 Jan 2022 22:13:03 +0100 Subject: [PATCH] Fix Typo --- Marlin/src/lcd/anycubic_touchscreen.cpp | 3 ++- Marlin/src/pins/ramps/pins_RAMPS.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Marlin/src/lcd/anycubic_touchscreen.cpp b/Marlin/src/lcd/anycubic_touchscreen.cpp index 2b957c54..3f1b740e 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/anycubic_touchscreen.cpp @@ -146,7 +146,6 @@ char _conv[8]; void setup_PowerOffPin() { #if ENABLED(KNUTWURST_4MAXP2) - #define POWER_OFF_PIN 21 SET_OUTPUT(POWER_OFF_PIN); WRITE(POWER_OFF_PIN,HIGH); #endif @@ -437,6 +436,8 @@ void AnycubicTouchscreenClass::StartPrint(){ } void AnycubicTouchscreenClass::PausePrint() { + HARDWARE_SERIAL_PROTOCOLPGM("J05");//j05 pausing + HARDWARE_SERIAL_ENTER(); #ifdef SDSUPPORT if (ai3m_pause_state < 2) { // is this a regular pause? card.pauseSDPrint(); // pause print regularly diff --git a/Marlin/src/pins/ramps/pins_RAMPS.h b/Marlin/src/pins/ramps/pins_RAMPS.h index 483616e5..7a1caab5 100755 --- a/Marlin/src/pins/ramps/pins_RAMPS.h +++ b/Marlin/src/pins/ramps/pins_RAMPS.h @@ -266,7 +266,7 @@ #define FILWIDTH_PIN 5 // Analog Input on AUX2 #endif -#if ENABLED(DKNUTWURST_4MAXP2) +#if ENABLED(KNUTWURST_4MAXP2) #ifndef POWER_OFF_PIN #define POWER_OFF_PIN 21 #endif