From 3884469b42245b3d30542af1cdabb0646ac1e234 Mon Sep 17 00:00:00 2001 From: Simon Christmann Date: Thu, 27 May 2021 15:48:29 +0200 Subject: [PATCH] use temperatures from Configuration.h Signed-off-by: Simon Christmann --- Marlin/AnycubicTFT.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/AnycubicTFT.cpp b/Marlin/AnycubicTFT.cpp index aeb96de..5d40abd 100644 --- a/Marlin/AnycubicTFT.cpp +++ b/Marlin/AnycubicTFT.cpp @@ -1169,8 +1169,8 @@ void AnycubicTFTClass::GetCommandFromTFT() if((!planner.movesplanned())&& (TFTstate!=ANYCUBIC_TFT_STATE_SDPAUSE) && (TFTstate!=ANYCUBIC_TFT_STATE_SDOUTAGE)) { if((current_position[Z_AXIS]<10)) enqueue_and_echo_commands_P(PSTR("G1 Z10")); // RAISE Z AXIS - thermalManager.setTargetBed(50); - thermalManager.setTargetHotend(200, 0); + thermalManager.setTargetBed(PREHEAT_1_TEMP_BED); + thermalManager.setTargetHotend(PREHEAT_1_TEMP_HOTEND, 0); ANYCUBIC_SERIAL_SUCC_START; ANYCUBIC_SERIAL_ENTER(); } @@ -1179,8 +1179,8 @@ void AnycubicTFTClass::GetCommandFromTFT() if((!planner.movesplanned()) && (TFTstate!=ANYCUBIC_TFT_STATE_SDPAUSE) && (TFTstate!=ANYCUBIC_TFT_STATE_SDOUTAGE)) { if((current_position[Z_AXIS]<10)) enqueue_and_echo_commands_P(PSTR("G1 Z10")); //RAISE Z AXIS - thermalManager.setTargetBed(80); - thermalManager.setTargetHotend(240, 0); + thermalManager.setTargetBed(PREHEAT_2_TEMP_BED); + thermalManager.setTargetHotend(PREHEAT_2_TEMP_HOTEND, 0); ANYCUBIC_SERIAL_SUCC_START; ANYCUBIC_SERIAL_ENTER();