Drop a conditional only used once
This commit is contained in:
parent
2a1162b42c
commit
2e3d74f60f
2 changed files with 8 additions and 13 deletions
|
|
@ -2107,15 +2107,15 @@ static void clean_up_after_endstop_or_probe_move() {
|
|||
|
||||
if (endstops.z_probe_enabled == deploy) return false;
|
||||
|
||||
// Fix-mounted probe should only raise for deploy
|
||||
#if ENABLED(FIX_MOUNTED_PROBE)
|
||||
#define RAISE_COND deploy
|
||||
#else
|
||||
#define RAISE_COND true
|
||||
#endif
|
||||
|
||||
// Make room for probe to deploy (or stow)
|
||||
if (RAISE_COND) do_probe_raise(_Z_CLEARANCE_DEPLOY_PROBE);
|
||||
// Fix-mounted probe should only raise for deploy
|
||||
if (
|
||||
#if ENABLED(FIX_MOUNTED_PROBE)
|
||||
deploy
|
||||
#else
|
||||
true
|
||||
#endif
|
||||
) do_probe_raise(max(Z_CLEARANCE_BETWEEN_PROBES, Z_CLEARANCE_DEPLOY_PROBE));
|
||||
|
||||
#if ENABLED(Z_PROBE_SLED) || ENABLED(Z_PROBE_ALLEN_KEY)
|
||||
#if ENABLED(Z_PROBE_SLED)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue