From 3e558a61b247bc1bf28ff806da1f92d6de63148f Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Wed, 3 Mar 2021 09:50:23 +0100 Subject: [PATCH] Add more warnings --- Marlin/Configuration.h | 26 ++++++++++++------------- Marlin/src/lcd/anycubic_touchscreen.cpp | 3 ++- Marlin/src/lcd/anycubic_touchscreen.h | 1 + 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 3ddb593e..410d4e2e 100755 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -78,11 +78,11 @@ * PLEASE READ THE WARNING ABOVE! * */ -//#define KNUTWURST_MEGA -//#define KNUTWURST_MEGA_S -//#define KNUTWURST_MEGA_X -//#define KNUTWURST_MEGA_P -//#define KNUTWURST_CHIRON +//#define KNUTWURST_MEGA // DO +//#define KNUTWURST_MEGA_S // NOT +//#define KNUTWURST_MEGA_X // UNCOMMENT +//#define KNUTWURST_MEGA_P // THESE +//#define KNUTWURST_CHIRON // SETTINGS ! /* * If you own the first generation i3 Mega @@ -96,7 +96,7 @@ * PLEASE READ THE WARNING ABOVE! * */ -//#define KNUTWURST_ONE_Z_ENDSTOP +//#define KNUTWURST_ONE_Z_ENDSTOP // DO NOT UNCOMMENT! USE PLATFORMIO TO BUILD THE FW FOR YOUR PRINTER! /* * If you have defined the MEGA_X or if @@ -107,7 +107,7 @@ * PLEASE READ THE WARNING ABOVE! * */ -//#define KNUTWURST_DGUS2_TFT +//#define KNUTWURST_DGUS2_TFT // DO NOT UNCOMMENT! USE PLATFORMIO TO BUILD THE FW FOR YOUR PRINTER! /* * Enable Support for Trinamic Stepper drivers. @@ -116,7 +116,7 @@ * * PLEASE READ THE WARNING ABOVE! */ -//#define KNUTWURST_TMC +//#define KNUTWURST_TMC // DO NOT UNCOMMENT! USE PLATFORMIO TO BUILD THE FW FOR YOUR PRINTER! /* * Invert E0 Stepper driver for @@ -127,7 +127,7 @@ * default. * */ -//#define KNUTWURST_BMG +//#define KNUTWURST_BMG // DO NOT UNCOMMENT! USE PLATFORMIO TO BUILD THE FW FOR YOUR PRINTER! /* * This enables the BLTouch Support and also @@ -139,7 +139,7 @@ * PLEASE READ THE WARNING ABOVE! * */ -//#define KNUTWURST_BLTOUCH +//#define KNUTWURST_BLTOUCH // DO NOT UNCOMMENT! USE PLATFORMIO TO BUILD THE FW FOR YOUR PRINTER! /* * This feature is for debugging purpose only. @@ -150,7 +150,7 @@ * PLEASE READ THE WARNING ABOVE! * */ -//#define KNUTWURST_DEBUG +//#define KNUTWURST_DEBUG // DO NOT UNCOMMENT! USE PLATFORMIO TO BUILD THE FW FOR YOUR PRINTER! /* * This enabled the integrated leveling features @@ -161,8 +161,8 @@ * PLEASE READ THE WARNING ABOVE! * */ -//#if ENABLED(KNUTWURST_CHIRON) - //#define KNUTWURST_TFT_LEVELING +//#if ENABLED(KNUTWURST_CHIRON) // DO NOT UNCOMMENT! USE PLATFORMIO TO BUILD THE FW FOR YOUR PRINTER! + #define KNUTWURST_TFT_LEVELING //#endif /******************************************************************************************* diff --git a/Marlin/src/lcd/anycubic_touchscreen.cpp b/Marlin/src/lcd/anycubic_touchscreen.cpp index e9af7d86..2cca3db4 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/anycubic_touchscreen.cpp @@ -1916,7 +1916,8 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() queue.enqueue_now_P(PSTR("G28\nG29")); } #else - HARDWARE_SERIAL_PROTOCOLPGM("J24\r\n")); // forbid auto leveling + HARDWARE_SERIAL_PROTOCOLPGM("J24"); // forbid auto leveling + HARDWARE_SERIAL_ENTER(); #endif break; case 31: // A31 zoffset set get or save diff --git a/Marlin/src/lcd/anycubic_touchscreen.h b/Marlin/src/lcd/anycubic_touchscreen.h index 6a750153..3f9f8c7a 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.h +++ b/Marlin/src/lcd/anycubic_touchscreen.h @@ -23,6 +23,7 @@ #include #include "../inc/MarlinConfig.h" +#include "../module/configuration_store.h" char *itostr2(const uint8_t &x);