diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index fb3b310d..73634609 100755 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -70,6 +70,17 @@ */ //#define KNUTWURST_TMC + +/* + * Here you can set the default preheat-Temperatures + * which are set when you use the builtin preheat + * functions in the TFT. + */ +#define KNUTWURST_PRHEAT_NOZZLE_PLA 200 +#define KNUTWURST_PRHEAT_BED_PLA 60 +#define KNUTWURST_PRHEAT_NOZZLE_ABS 240 +#define KNUTWURST_PRHEAT_BED_ABS 90 + /* * This enables the BLTouch Support and also * activates the BLTouch Menu item in the diff --git a/Marlin/src/lcd/anycubic_touchscreen.cpp b/Marlin/src/lcd/anycubic_touchscreen.cpp index c26c4b38..c3b08698 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/anycubic_touchscreen.cpp @@ -1534,8 +1534,8 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() { if ((current_position[Z_AXIS] < 10)) queue.inject_P(PSTR("G1 Z10")); // RAISE Z AXIS - thermalManager.setTargetBed(50); - thermalManager.setTargetHotend(200, 0); + thermalManager.setTargetBed(KNUTWURST_PRHEAT_BED_PLA); + thermalManager.setTargetHotend(KNUTWURST_PRHEAT_NOZZLE_PLA, 0); HARDWARE_SERIAL_SUCC_START; HARDWARE_SERIAL_ENTER(); } @@ -1545,9 +1545,8 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() { if ((current_position[Z_AXIS] < 10)) queue.inject_P(PSTR("G1 Z10")); //RAISE Z AXIS - thermalManager.setTargetBed(80); - thermalManager.setTargetHotend(240, 0); - + thermalManager.setTargetBed(KNUTWURST_PRHEAT_BED_ABS); + thermalManager.setTargetHotend(KNUTWURST_PRHEAT_NOZZLE_ABS, 0); HARDWARE_SERIAL_SUCC_START; HARDWARE_SERIAL_ENTER(); }