Combine Z_AFTER_DEACTIVATE with UNKNOWN_Z_NO_RAISE (#20444)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@ -401,14 +401,7 @@ bool Probe::set_deployed(const bool deploy) {
|
||||
constexpr bool z_raise_wanted = true;
|
||||
#endif
|
||||
|
||||
// For beds that fall when Z is powered off only raise for trusted Z
|
||||
#if ENABLED(UNKNOWN_Z_NO_RAISE)
|
||||
const bool z_is_trusted = axis_is_trusted(Z_AXIS);
|
||||
#else
|
||||
constexpr float z_is_trusted = true;
|
||||
#endif
|
||||
|
||||
if (z_is_trusted && z_raise_wanted)
|
||||
if (z_raise_wanted)
|
||||
do_z_raise(_MAX(Z_CLEARANCE_BETWEEN_PROBES, Z_CLEARANCE_DEPLOY_PROBE));
|
||||
|
||||
#if EITHER(Z_PROBE_SLED, Z_PROBE_ALLEN_KEY)
|
||||
|
Reference in New Issue
Block a user