Browse Source

Fix coolstep_min_speed / sensorless homing

Fix #8890
pull/1/head
Scott Lahteine 6 years ago
parent
commit
f3fed52348
  1. 2
      Marlin/src/feature/tmc_util.cpp
  2. 2
      Marlin/src/module/stepper_indirection.cpp

2
Marlin/src/feature/tmc_util.cpp

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

2
Marlin/src/module/stepper_indirection.cpp

@ -206,8 +206,6 @@
#if ENABLED(HYBRID_THRESHOLD)
st.stealth_max_speed(12650000UL*microsteps/(256*thrs*spmm));
#endif
#elif ENABLED(SENSORLESS_HOMING)
st.coolstep_min_speed(1024UL * 1024UL - 1UL);
#endif
st.GSTAT(); // Clear GSTAT
}

Loading…
Cancel
Save