️ Home Z (and maybe XY) at the start of G35 (#22060)

This commit is contained in:
qwewer0
2021-06-14 23:52:42 +02:00
committed by Scott Lahteine
parent cdd9507493
commit dec083dcc1
6 changed files with 34 additions and 28 deletions

View File

@ -91,8 +91,8 @@ void GcodeSuite::G35() {
// Disable duplication mode on homing
TERN_(HAS_DUPLICATION_MODE, set_duplication_enabled(false));
// Home all before this procedure
home_all_axes();
// Home only Z axis when X and Y is trusted, otherwise all axes, if needed before this procedure
if (!all_axes_trusted()) process_subcommands_now_P(PSTR("G28Z"));
bool err_break = false;

View File

@ -39,7 +39,7 @@
void GcodeSuite::G34() {
// Home before the alignment procedure
if (!all_axes_trusted()) home_all_axes();
home_if_needed();
TERN_(HAS_LEVELING, TEMPORARY_BED_LEVELING_STATE(false));

View File

@ -167,7 +167,7 @@ void GcodeSuite::G34() {
));
// Home before the alignment procedure
if (!all_axes_trusted()) home_all_axes();
home_if_needed();
// Move the Z coordinate realm towards the positive - dirty trick
current_position.z += z_probe * 0.5f;

View File

@ -99,7 +99,7 @@ void GcodeSuite::M600() {
#if ENABLED(HOME_BEFORE_FILAMENT_CHANGE)
// If needed, home before parking for filament change
if (!all_axes_trusted()) home_all_axes(true);
home_if_needed(true);
#endif
#if HAS_MULTI_EXTRUDER