Add userdefines for touchscreen preheat functions

This commit is contained in:
Knutwurst
2020-08-07 20:01:55 +02:00
parent bf8e0bab9c
commit 53b0ac3c3a
2 changed files with 15 additions and 5 deletions

View File

@@ -70,6 +70,17 @@
*/ */
//#define KNUTWURST_TMC //#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 * This enables the BLTouch Support and also
* activates the BLTouch Menu item in the * activates the BLTouch Menu item in the

View File

@@ -1534,8 +1534,8 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
{ {
if ((current_position[Z_AXIS] < 10)) if ((current_position[Z_AXIS] < 10))
queue.inject_P(PSTR("G1 Z10")); // RAISE Z AXIS queue.inject_P(PSTR("G1 Z10")); // RAISE Z AXIS
thermalManager.setTargetBed(50); thermalManager.setTargetBed(KNUTWURST_PRHEAT_BED_PLA);
thermalManager.setTargetHotend(200, 0); thermalManager.setTargetHotend(KNUTWURST_PRHEAT_NOZZLE_PLA, 0);
HARDWARE_SERIAL_SUCC_START; HARDWARE_SERIAL_SUCC_START;
HARDWARE_SERIAL_ENTER(); HARDWARE_SERIAL_ENTER();
} }
@@ -1545,9 +1545,8 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
{ {
if ((current_position[Z_AXIS] < 10)) if ((current_position[Z_AXIS] < 10))
queue.inject_P(PSTR("G1 Z10")); //RAISE Z AXIS queue.inject_P(PSTR("G1 Z10")); //RAISE Z AXIS
thermalManager.setTargetBed(80); thermalManager.setTargetBed(KNUTWURST_PRHEAT_BED_ABS);
thermalManager.setTargetHotend(240, 0); thermalManager.setTargetHotend(KNUTWURST_PRHEAT_NOZZLE_ABS, 0);
HARDWARE_SERIAL_SUCC_START; HARDWARE_SERIAL_SUCC_START;
HARDWARE_SERIAL_ENTER(); HARDWARE_SERIAL_ENTER();
} }