Skip to content

Commit

Permalink
Fix coolstep_min_speed / sensorless homing
Browse files Browse the repository at this point in the history
Fix #8890
  • Loading branch information
thinkyhead committed Sep 22, 2018
1 parent 6ea5a2d commit 8c454bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Marlin/stepper_indirection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,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
}
Expand Down
2 changes: 1 addition & 1 deletion Marlin/tmc_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,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);
Expand Down

0 comments on commit 8c454bd

Please sign in to comment.