From 7c05040274abd22d3a2ec06d9b8af114e541d2af Mon Sep 17 00:00:00 2001 From: David Ramiro Date: Mon, 7 Jan 2019 14:07:20 +0100 Subject: [PATCH] Move up nozzle after aborting Raise Z for up to 5 cm (depending on current height) after aborting a print via display. Referencing issue #9. --- Marlin/AnycubicTFT.cpp | 3 +++ Marlin/Version.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Marlin/AnycubicTFT.cpp b/Marlin/AnycubicTFT.cpp index cd79d74..f781528 100644 --- a/Marlin/AnycubicTFT.cpp +++ b/Marlin/AnycubicTFT.cpp @@ -465,6 +465,9 @@ void AnycubicTFTClass::StateHandler() #ifdef ANYCUBIC_TFT_DEBUG SERIAL_ECHOLNPGM("TFT Serial Debug: SD print stopped... J16"); #endif + if((current_position[Z_AXIS]>200)) enqueue_and_echo_commands_P(PSTR("G91\nG1 Z2 F240\nG90")); + if((current_position[Z_AXIS]<200)) enqueue_and_echo_commands_P(PSTR("G91\nG1 Z5 F240\nG90")); + if((current_position[Z_AXIS]<150)) enqueue_and_echo_commands_P(PSTR("G91\nG1 Z45 F240\nG90")); enqueue_and_echo_commands_P(PSTR("M84")); } #endif diff --git a/Marlin/Version.h b/Marlin/Version.h index 4900fb6..4ec85c8 100644 --- a/Marlin/Version.h +++ b/Marlin/Version.h @@ -1,4 +1,4 @@ -/** +/** * Marlin 3D Printer Firmware * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * @@ -48,7 +48,7 @@ * here we define this default string as the date where the latest release * version was tagged. */ - #define STRING_DISTRIBUTION_DATE "2019-01-04" + #define STRING_DISTRIBUTION_DATE "2019-01-07" /** * Required minimum Configuration.h and Configuration_adv.h file versions.