parent
91976e3ef4
commit
cc4e515480
@ -201,8 +201,6 @@
|
|||||||
#if ENABLED(HYBRID_THRESHOLD)
|
#if ENABLED(HYBRID_THRESHOLD)
|
||||||
st.stealth_max_speed(12650000UL*microsteps/(256*thrs*spmm));
|
st.stealth_max_speed(12650000UL*microsteps/(256*thrs*spmm));
|
||||||
#endif
|
#endif
|
||||||
#elif ENABLED(SENSORLESS_HOMING)
|
|
||||||
st.coolstep_min_speed(1024UL * 1024UL - 1UL);
|
|
||||||
#endif
|
#endif
|
||||||
st.GSTAT(); // Clear GSTAT
|
st.GSTAT(); // Clear GSTAT
|
||||||
}
|
}
|
||||||
|
@ -580,8 +580,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*/) {
|
||||||
#if ENABLED(STEALTHCHOP)
|
|
||||||
st.coolstep_min_speed(enable ? 1024UL * 1024UL - 1UL : 0);
|
st.coolstep_min_speed(enable ? 1024UL * 1024UL - 1UL : 0);
|
||||||
|
#if ENABLED(STEALTHCHOP)
|
||||||
st.stealthChop(!enable);
|
st.stealthChop(!enable);
|
||||||
#endif
|
#endif
|
||||||
st.diag1_stall(enable ? 1 : 0);
|
st.diag1_stall(enable ? 1 : 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user