Adjust axis homed / trusted methods (#20323)
This commit is contained in:
@@ -319,15 +319,14 @@ void GcodeSuite::G28() {
|
||||
|
||||
#endif
|
||||
|
||||
const float z_homing_height =
|
||||
ENABLED(UNKNOWN_Z_NO_RAISE) && !TEST(axis_known_position, Z_AXIS)
|
||||
? 0
|
||||
: (parser.seenval('R') ? parser.value_linear_units() : Z_HOMING_HEIGHT);
|
||||
const float z_homing_height = TERN1(UNKNOWN_Z_NO_RAISE, axis_is_trusted(Z_AXIS))
|
||||
? (parser.seenval('R') ? parser.value_linear_units() : Z_HOMING_HEIGHT)
|
||||
: 0;
|
||||
|
||||
if (z_homing_height && (doX || doY || TERN0(Z_SAFE_HOMING, doZ))) {
|
||||
// Raise Z before homing any other axes and z is not already high enough (never lower z)
|
||||
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Raise Z (before homing) by ", z_homing_height);
|
||||
do_z_clearance(z_homing_height, true, DISABLED(UNKNOWN_Z_NO_RAISE));
|
||||
do_z_clearance(z_homing_height, axis_is_trusted(Z_AXIS), DISABLED(UNKNOWN_Z_NO_RAISE));
|
||||
}
|
||||
|
||||
#if ENABLED(QUICK_HOME)
|
||||
|
Reference in New Issue
Block a user