🎨 Misc. probe / endstop cleanup
This commit is contained in:
parent
9871800874
commit
f00a0356c7
|
@ -561,7 +561,7 @@ void _O2 Endstops::report_states() {
|
||||||
#if HAS_K_MAX
|
#if HAS_K_MAX
|
||||||
ES_REPORT(K_MAX);
|
ES_REPORT(K_MAX);
|
||||||
#endif
|
#endif
|
||||||
#if BOTH(MARLIN_DEV_MODE, PROBE_ACTIVATION_SWITCH)
|
#if BOTH(PROBE_ACTIVATION_SWITCH)
|
||||||
print_es_state(probe_switch_activated(), F(STR_PROBE_EN));
|
print_es_state(probe_switch_activated(), F(STR_PROBE_EN));
|
||||||
#endif
|
#endif
|
||||||
#if USES_Z_MIN_PROBE_PIN
|
#if USES_Z_MIN_PROBE_PIN
|
||||||
|
|
|
@ -496,10 +496,10 @@ bool Probe::probe_down_to_z(const_float_t z, const_feedRate_t fr_mm_s) {
|
||||||
#if ENABLED(SENSORLESS_PROBING)
|
#if ENABLED(SENSORLESS_PROBING)
|
||||||
sensorless_t stealth_states { false };
|
sensorless_t stealth_states { false };
|
||||||
#if HAS_DELTA_SENSORLESS_PROBING
|
#if HAS_DELTA_SENSORLESS_PROBING
|
||||||
if (probe.test_sensitivity.x) stealth_states.x = tmc_enable_stallguard(stepperX); // Delta watches all DIAG pins for a stall
|
if (test_sensitivity.x) stealth_states.x = tmc_enable_stallguard(stepperX); // Delta watches all DIAG pins for a stall
|
||||||
if (probe.test_sensitivity.y) stealth_states.y = tmc_enable_stallguard(stepperY);
|
if (test_sensitivity.y) stealth_states.y = tmc_enable_stallguard(stepperY);
|
||||||
#endif
|
#endif
|
||||||
if (probe.test_sensitivity.z) stealth_states.z = tmc_enable_stallguard(stepperZ); // All machines will check Z-DIAG for stall
|
if (test_sensitivity.z) stealth_states.z = tmc_enable_stallguard(stepperZ); // All machines will check Z-DIAG for stall
|
||||||
endstops.enable(true);
|
endstops.enable(true);
|
||||||
set_homing_current(true); // The "homing" current also applies to probing
|
set_homing_current(true); // The "homing" current also applies to probing
|
||||||
#endif
|
#endif
|
||||||
|
@ -524,10 +524,10 @@ bool Probe::probe_down_to_z(const_float_t z, const_feedRate_t fr_mm_s) {
|
||||||
#if ENABLED(SENSORLESS_PROBING)
|
#if ENABLED(SENSORLESS_PROBING)
|
||||||
endstops.not_homing();
|
endstops.not_homing();
|
||||||
#if HAS_DELTA_SENSORLESS_PROBING
|
#if HAS_DELTA_SENSORLESS_PROBING
|
||||||
if (probe.test_sensitivity.x) tmc_disable_stallguard(stepperX, stealth_states.x);
|
if (test_sensitivity.x) tmc_disable_stallguard(stepperX, stealth_states.x);
|
||||||
if (probe.test_sensitivity.y) tmc_disable_stallguard(stepperY, stealth_states.y);
|
if (test_sensitivity.y) tmc_disable_stallguard(stepperY, stealth_states.y);
|
||||||
#endif
|
#endif
|
||||||
if (probe.test_sensitivity.z) tmc_disable_stallguard(stepperZ, stealth_states.z);
|
if (test_sensitivity.z) tmc_disable_stallguard(stepperZ, stealth_states.z);
|
||||||
set_homing_current(false);
|
set_homing_current(false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue