Browse Source

Fix PLR Z bug affecting Cartesians (#14230)

pull/1/head
Robby Candra 6 years ago
committed by Scott Lahteine
parent
commit
7e07a3888b
  1. 7
      Marlin/src/feature/power_loss_recovery.cpp

7
Marlin/src/feature/power_loss_recovery.cpp

@ -361,7 +361,12 @@ void PrintJobRecovery::resume() {
// Move back to the saved Z // Move back to the saved Z
dtostrf(info.current_position[Z_AXIS], 1, 3, str_1); 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); gcode.process_subcommands_now(cmd);
// Un-retract // Un-retract

Loading…
Cancel
Save