Fix PLR Z bug affecting Cartesians (#14230)

This commit is contained in:
Robby Candra 2019-06-08 17:27:59 +07:00 committed by Scott Lahteine
parent 5ca8d51e12
commit 7e07a3888b

View file

@ -361,7 +361,12 @@ void PrintJobRecovery::resume() {
// Move back to the saved Z
dtostrf(info.current_position[Z_AXIS], 1, 3, str_1);
sprintf_P(cmd, PSTR("G1 Z%s F200"), str_1);
#if Z_HOME_DIR > 0
sprintf_P(cmd, PSTR("G1 Z%s F200"), str_1);
#else
gcode.process_subcommands_now_P(PSTR("G1 Z0 F200"));
sprintf_P(cmd, PSTR("G92.9 Z%s"), str_1);
#endif
gcode.process_subcommands_now(cmd);
// Un-retract