Cleanup and consolidate probe conditionals for clarity
This commit is contained in:
@@ -1681,7 +1681,7 @@ static void setup_for_endstop_move() {
|
||||
refresh_cmd_timeout();
|
||||
}
|
||||
|
||||
#if ENABLED(HAS_Z_MIN_PROBE)
|
||||
#if HAS_BED_PROBE
|
||||
|
||||
static void deploy_z_probe() {
|
||||
|
||||
@@ -1878,7 +1878,7 @@ static void setup_for_endstop_move() {
|
||||
|
||||
endstops.enable_z_probe(false);
|
||||
}
|
||||
#endif // HAS_Z_MIN_PROBE
|
||||
#endif // HAS_BED_PROBE
|
||||
|
||||
enum ProbeAction {
|
||||
ProbeStay = 0,
|
||||
@@ -3579,7 +3579,7 @@ inline void gcode_G28() {
|
||||
}
|
||||
#endif
|
||||
enqueue_and_echo_commands_P(PSTR(Z_PROBE_END_SCRIPT));
|
||||
#if ENABLED(HAS_Z_MIN_PROBE)
|
||||
#if HAS_BED_PROBE
|
||||
endstops.enable_z_probe(false);
|
||||
#endif
|
||||
stepper.synchronize();
|
||||
@@ -3942,7 +3942,7 @@ inline void gcode_M42() {
|
||||
* Z_MIN_PROBE_PIN, but here for clarity.
|
||||
*/
|
||||
#if ENABLED(Z_MIN_PROBE_ENDSTOP)
|
||||
#if !HAS_Z_PROBE
|
||||
#if !HAS_Z_MIN_PROBE_PIN
|
||||
#error You must define Z_MIN_PROBE_PIN to enable Z probe repeatability calculation.
|
||||
#endif
|
||||
#elif !HAS_Z_MIN
|
||||
|
Reference in New Issue
Block a user