Anycubic Chiron full feature support (#19505)
This commit is contained in:
@ -367,7 +367,9 @@ void PrintJobRecovery::resume() {
|
||||
|
||||
gcode.process_subcommands_now_P(PSTR(
|
||||
"G28R0" // No raise during G28
|
||||
TERN_(IS_CARTESIAN, "XY") // Don't home Z on Cartesian
|
||||
#if IS_CARTESIAN && DISABLED(POWER_LOSS_RECOVER_ZHOME)
|
||||
"XY" // Don't home Z on Cartesian unless overridden
|
||||
#endif
|
||||
));
|
||||
|
||||
#endif
|
||||
@ -375,6 +377,12 @@ void PrintJobRecovery::resume() {
|
||||
// Pretend that all axes are homed
|
||||
set_all_homed();
|
||||
|
||||
#if ENABLED(POWER_LOSS_RECOVER_ZHOME)
|
||||
// Z has been homed so restore Z to ZsavedPos + POWER_LOSS_ZRAISE
|
||||
sprintf_P(cmd, PSTR("G1 F500 Z%s"), dtostrf(info.current_position.z + POWER_LOSS_ZRAISE, 1, 3, str_1));
|
||||
gcode.process_subcommands_now(cmd);
|
||||
#endif
|
||||
|
||||
// Recover volumetric extrusion state
|
||||
#if DISABLED(NO_VOLUMETRICS)
|
||||
#if HAS_MULTI_EXTRUDER
|
||||
@ -481,7 +489,7 @@ void PrintJobRecovery::resume() {
|
||||
|
||||
// Move back to the saved Z
|
||||
dtostrf(info.current_position.z, 1, 3, str_1);
|
||||
#if Z_HOME_DIR > 0
|
||||
#if Z_HOME_DIR > 0 || ENABLED(POWER_LOSS_RECOVER_ZHOME)
|
||||
sprintf_P(cmd, PSTR("G1 Z%s F200"), str_1);
|
||||
#else
|
||||
gcode.process_subcommands_now_P(PSTR("G1 Z0 F200"));
|
||||
|
Reference in New Issue
Block a user