Browse Source

Fix PLR Z bug affecting Cartesians (#14230)

Robby Candra 6 years ago
parent
commit
7e07a3888b
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      Marlin/src/feature/power_loss_recovery.cpp

+ 6
- 1
Marlin/src/feature/power_loss_recovery.cpp View File

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

Loading…
Cancel
Save