From 5a6ef00cfc04386a18fe1e6ff2e1eacb7e860b16 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 7 Sep 2018 10:48:33 +0200 Subject: [PATCH] Do not unload filament from nozzle when touching bed in the end of first layer calibration. Unload it after reaching home position. --- Firmware/ultralcd.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 46ac9d665..04cf8073b 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -1528,14 +1528,12 @@ void lcd_commands() { lcd_timeoutToStatus.start(); enquecommand_P(PSTR("M107")); //turn off printer fan - if (mmu_enabled) - enquecommand_P(PSTR("M702 C")); - else - enquecommand_P(PSTR("G1 E-0.07500 F2100.00000")); + enquecommand_P(PSTR("G1 E-0.07500 F2100.00000")); //retract enquecommand_P(PSTR("M104 S0")); // turn off temperature enquecommand_P(PSTR("M140 S0")); // turn off heatbed - enquecommand_P(PSTR("G1 Z10 F1300.000")); - enquecommand_P(PSTR("G1 X10 Y180 F4000")); //home X axis + enquecommand_P(PSTR("G1 Z10 F1300.000")); //lift Z + enquecommand_P(PSTR("G1 X10 Y180 F4000")); //Go to parking position + if (mmu_enabled) enquecommand_P(PSTR("M702 C")); //unload from nozzle enquecommand_P(PSTR("M84"));// disable motors forceMenuExpire = true; //if user dont confirm live adjust Z value by pressing the knob, we are saving last value by timeout to status screen lcd_commands_step = 1;