Browse Source

Fix coolstep_min_speed / sensorless homing

Fix #8890
Scott Lahteine 7 years ago
parent
commit
f3fed52348
2 changed files with 1 additions and 3 deletions
  1. 1
    1
      Marlin/src/feature/tmc_util.cpp
  2. 0
    2
      Marlin/src/module/stepper_indirection.cpp

+ 1
- 1
Marlin/src/feature/tmc_util.cpp View File

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

+ 0
- 2
Marlin/src/module/stepper_indirection.cpp View File

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

Loading…
Cancel
Save