Skip to content

Commit

Permalink
Move up nozzle after aborting
Browse files Browse the repository at this point in the history
Raise Z for up to 5 cm (depending on current height) after aborting a print via display.

Referencing issue MarlinFirmware#9.
  • Loading branch information
davidramiro committed Jan 7, 2019
1 parent 4a105e3 commit 7c05040
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Marlin/AnycubicTFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Marlin/Version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 7c05040

Please sign in to comment.