|
|
@ -582,8 +582,8 @@ void _tmc_say_sgt(const TMC_AxisEnum axis, const int8_t sgt) {
|
|
|
|
#if ENABLED(SENSORLESS_HOMING)
|
|
|
|
#if ENABLED(SENSORLESS_HOMING)
|
|
|
|
|
|
|
|
|
|
|
|
void tmc_sensorless_homing(TMC2130Stepper &st, const bool enable/*=true*/) {
|
|
|
|
void tmc_sensorless_homing(TMC2130Stepper &st, const bool enable/*=true*/) {
|
|
|
|
|
|
|
|
st.coolstep_min_speed(enable ? 1024UL * 1024UL - 1UL : 0);
|
|
|
|
#if ENABLED(STEALTHCHOP)
|
|
|
|
#if ENABLED(STEALTHCHOP)
|
|
|
|
st.coolstep_min_speed(enable ? 1024UL * 1024UL - 1UL : 0);
|
|
|
|
|
|
|
|
st.stealthChop(!enable);
|
|
|
|
st.stealthChop(!enable);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
st.diag1_stall(enable ? 1 : 0);
|
|
|
|
st.diag1_stall(enable ? 1 : 0);
|
|
|
|