Simplify PLR homing when Z homes to max (#13718)
This commit is contained in:
parent
92ed9a2bb6
commit
35160dfb7a
@ -245,13 +245,23 @@ void PrintJobRecovery::resume() {
|
|||||||
gcode.process_subcommands_now_P(PSTR("M420 S0 Z0"));
|
gcode.process_subcommands_now_P(PSTR("M420 S0 Z0"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Set Z to 0, raise Z by RECOVERY_ZRAISE, and Home (XY only for Cartesian)
|
// Reset E, raise Z, home XY...
|
||||||
// with no raise. (Only do simulated homing in Marlin Dev Mode.)
|
gcode.process_subcommands_now_P(PSTR("G92.9 E0"
|
||||||
gcode.process_subcommands_now_P(PSTR("G92.9 E0 Z0\nG1 Z" STRINGIFY(RECOVERY_ZRAISE) "\nG28 R0"
|
#if Z_HOME_DIR > 0
|
||||||
#if ENABLED(MARLIN_DEV_MODE)
|
// If Z homing goes to max, reset E and home all
|
||||||
" S"
|
"\nG28R0"
|
||||||
#elif !IS_KINEMATIC
|
#if ENABLED(MARLIN_DEV_MODE)
|
||||||
" X Y"
|
"S"
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
// Set Z to 0, raise Z by RECOVERY_ZRAISE, and Home (XY only for Cartesian)
|
||||||
|
// with no raise. (Only do simulated homing in Marlin Dev Mode.)
|
||||||
|
"Z0\nG1Z" STRINGIFY(RECOVERY_ZRAISE) "\nG28R0"
|
||||||
|
#if ENABLED(MARLIN_DEV_MODE)
|
||||||
|
"S"
|
||||||
|
#elif !IS_KINEMATIC
|
||||||
|
"XY"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user