From 7e07a3888bb4a684afa864a77c84b2869e0c0ae2 Mon Sep 17 00:00:00 2001 From: Robby Candra Date: Sat, 8 Jun 2019 17:27:59 +0700 Subject: [PATCH] Fix PLR Z bug affecting Cartesians (#14230) --- Marlin/src/feature/power_loss_recovery.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Marlin/src/feature/power_loss_recovery.cpp b/Marlin/src/feature/power_loss_recovery.cpp index 906315d284..3605d0e486 100644 --- a/Marlin/src/feature/power_loss_recovery.cpp +++ b/Marlin/src/feature/power_loss_recovery.cpp @@ -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